Bentley Communities
Bentley Communities
  • Site
  • User
  • Site
  • Search
  • User
  • Welcome
  • Products
  • Support
  • About
  • More
  • Cancel
MicroStation
  • Product Communities
  • More
MicroStation
MicroStation Wiki Creating a Custom Linestyle
    • Sign in

    • -MicroStation Wiki
      • +Learning Tips
      • -MicroStation
        • +3D Printing - MicroStation
        • +Animation - MicroStation
        • +Archive / Backup - MicroStation
        • +Base Geometry - MicroStation
        • +Batch Processing - MicroStation
        • +CONNECT Advisor - MicroStation
        • CONNECT Integration - MicroStation
        • +CONNECTION Client
        • +Cells - MicroStation
        • +Change Tracking - MicroStation
        • +Configuration - MicroStation
        • +Coordinate Systems - MicroStation
        • +Curves - MicroStation
        • -Custom Linestyles - MicroStation
          • Adding client linestyles to the Element> Linestyles > Custom list
          • AutoCAD Line Style Display in MicroStation
          • Converting Linestyles from Metric to English
          • Creating a Custom Linestyle
          • Custom line is all in red but element information shows different
          • Custom Line Types Appear Different Sizes
          • Custom Linestyle is too Large
          • Custom linestyle that alway ends with a dash
          • Custom linestyle with text is Rotating.
          • Custom Linestyle, Display, width
          • Custom Linestyles are appearing as a solid
          • Delete Custom Style Point Symbol
          • Drop a Custom Line style
          • Duplicate linestyles are not displaying correctly
          • Enable text style to be created during the import of .LIN file
          • How can I tell what linestyles are contained within a dgn
          • How do I attach line styles to a file without using Config Variables?
          • How to a check a corrupt .rsc file
          • How to change linestyle scale in reference file
          • How to change the direction of a linestyle when it is placed
          • How to check if a RSC file is corrupted
          • How to copy an existing linestyle
          • How to copy Linestyles from a RSC file to a new RSC file or to an existing one
          • How to create a Custom LineStyle to react similar to AutoCad
          • How to drop all Custom LineStyles in a file
          • How to edit and delete custom Line Style(s) from a DGNLIB
          • How to find out what Custom Linestyles are stored in a DGNLIB
          • How to make linestyle pattern continue through vertex/points
          • How to make linestyles to use annotation scale in a model
          • How to merge custom linestyle resource files together
          • How to move the position of a point on a custom linestyle without moving the line itself
          • How to rename a linestyle component description
          • How to set custom lstyle scale and width via keyin
          • How to tell which RSC file a Linestyle definition is stored in
          • How to update internal styles (.LIN or RSC)
          • Import linestyles to DGN files with Batch Processing
          • Importing LIN file through linestyle editor
          • Irregular spacing in custom linestyles
          • Is there any way to globally scale multiple linestyles
          • Keypoint snap does not appear to be snap
          • Line Styles missing from Line Style resource file
          • Linestyle in Referenced file displaying incorrectly
          • Linestyle Scale not correct in Reference
          • Linestyle with width and weight incorrect
          • Linestyles with repetition counts is not supported in DWG workmode.
          • MDL Abort in DRAGLIST.MC at line 2047
          • Modify Line Style Attributes tool is inconsistent.
          • Moving a point element in custom linestyle
          • Scale of linestyles very small
          • Scaling custom linestyles
          • Text in custom line style displays upside-down when drawn from right-to-left
          • Trying to change the scale of my active linestyle to 0
          • Unable to change Global Line Style Scale
          • What ltscale is necessary to correctly plot Linestyles?
        • +DGN - MicroStation
        • +DWG - MicroStation
        • +Database - MicroStation
        • +Detailing Symbols - MicroStation
        • +Dimensions - MicroStation
        • +Documentation & Help - MicroStation
        • +Drawing Aids - MicroStation
        • +Exception - MicroStation
        • +FAQ - MicroStation
        • +Feature Based Solids Modeling - MicroStation
        • +File Access - MicroStation
        • +GUI - MicroStation
        • +General - MicroStation
        • +Graphics Display - MicroStation
        • +Groups - MicroStation
        • +Hardware / Input Devices - MicroStation
        • +Import/Export - MicroStation
        • +Installation - MicroStation
        • +Interchange - MicroStation
        • +Interference - MicroStation
        • +Internationalization - MicroStation
        • +Levels - MicroStation
        • +Licensing - MicroStation
        • +Manipulation - MicroStation
        • +Markup / Redline - MicroStation
        • +Measure - MicroStation
        • +Mesh - MicroStation
        • +Models - MicroStation
        • +Multi-Lines - MicroStation
        • +OLE - MicroStation
        • +Other - MicroStation
        • +Parametrics - MicroStation
        • +Patterning - MicroStation
        • +Point Cloud - MicroStation
        • +Printing - MicroStation
        • +Programming - MicroStation
        • +Project Navigation - MicroStation
        • +Properties - MicroStation
        • +RSS Feeds - MicroStation
        • +Reference - MicroStation
        • +Security - MicroStation
        • +Selection - MicroStation
        • +Settings - MicroStation
        • +Sheet Composition - MicroStation
        • +Solids - MicroStation
        • +Standards - MicroStation
        • +Surfaces - MicroStation
        • +Tables - MicroStation
        • +Text - MicroStation
        • +UI Customization - MicroStation
        • +Units - MicroStation
        • +View - MicroStation
        • +Visualization - MicroStation
        • Welcome Page - MicroStation
        • +Accreditation - MicroStation
        • +i.Models - MicroStation
        • +ProjectWise Integration
        • +Raster - MicroStation
    • +Administration Wiki
    • +Annotations Wiki
    • +Bentley View Wiki
    • +MicroStation PowerDraft
    • +Programming Wiki
    • +Visualization Wiki

     
     Questions about this article, topic, or product? Click here. 

    Creating a Custom Linestyle

       
      Applies To 
       
      Product(s): MicroStation
      Version(s): 08.11.09.459
      Environment:  N/A
      Area:  Custom Linestyles
      Subarea: 
      Original Author: Derval Canny, Bentley Technical Support Group
       

    Recommendations

    A custom line can be made up of a series of user-defined dashes (stroke pattern), a series of symbols at defined intervals (point symbols), or a combination of the two.

    A stroke pattern component is made up of solid “DASHES” and blank “GAPS”, all of which sizes (in master units) are defined by the user

    A symbol is similar to a cell and again is defined and created by the user usually before the custom line style is created.

    A simple line style could be a dashed line with an X symbol in the gap.

    It is best to sketch a rough outline of what you want your line to look
    like.

    Eg:
     

    This is made up of a length 5-unit line, a 2-unit gap and an X symbol.

    We only need one solid dash here, as it will repeat itself after the
    initial gap.

    So we must define all of the above components.

    To start we must call up the edit custom line style dialog from

    ELEMENT>LINESTYLE>EDIT


      

    Now that the Linestyle editor is open, lets create a new resource file to store our components, (this should be kept in the same directory as the other rsc files unless you point your configuration variable to find it)

    From the fie menu on this dialog, choose NEW, to create a blank resource
    file, and call it newline.rsc

    There are two main sections to this dialog – “Styles” and “components”.
    STYLES is the name you give your new line and is what you will see in the primary tools box when choosing your line.

    COMPONENTS are the ‘bits’, which go to make up your new Linestyle.

    Lets create some new components

    the stroke pattern (dashes and gaps) and the points (symbols)

    From the Edit menu on the Linestyle editor, choose

    CREATE>STROKE PATTERN


     

    This will insert a new blank stroke pattern, which we will give a name to by entering it in the field below the list of components. Call it mystroke,
    then press enter.


     

    Next we will define the gaps and dashes.

    Click on the ADD button to add on two basic gaps. Then, to define their size and if they are gaps or dashes, click on the first one, then in the length field give it a size of five (then enter) then chose the stroke type option and chose “DASH”
    this will be our solid line.

    Now to define the gap, select it from the graphic and give it a length
    value of 2 (and enter), this is now our gap of 2 units.

    Now that the gaps and dashes of our line have been set, let’s create some symbols to put in the line. This is done using MicroStation keyins and commands, so we can move the Linestyle editor to one side for now.

    As ours is a simple X, place an X of height and width 1 in the design file with justification center center.

    When using text as the point symbol, it is recommended to use the Drop Element tool or DROP TEXT
    key-in to drop the text to individual elements. This is protection against the possibility that the font used when creating the linestyle may not be present when the linestyle is used in the future.

    Select it with the selection tool.

    Keyin: CREATE SYMBOL MYSYMBOL

     (where mysymbol is the name of the new symbol),
    then choose an origin for the symbol, you will see a message:
     
     
      
      

    Next lets define where the symbol should go in our custom line.

    From the linestyles editor, choose

    EDIT>CREATE>POINT

    This creates a new point component, which again you can rename to suit you (mypoint)

    Now lets define where it goes, chose the BASE STROKE PATTERN button, as it needs to know which gaps and dashes to work with.

    Select the one we created earlier (mystroke).

    You will now see it appear in the dialog box.

    We know the symbol goes in the gap so click on the GAP, and choose the SELECT button at the bottom of the dialog box. Now choose the symbol we created earlier (mysymbol) and click OK.

     

    It will now be inserted into the gap. (Don’t worry if you do not see anything yet)

     

     

    Now the last thing to do is to link these two components (symbol and lines) in to one and give it a name so that it can be selected from the primary tools.

    Chose EDIT>CREATE>COMPOUND

    and again give this compound component a name (my new line)

    A compound component can be made up of many stroke and symbol components (in our case – mypoint and mystroke)

    Then click on the insert button and, one at a time, select and insert mypoint and mystroke


      
      
      

    Now this is done let’s give our new Linestyle a name and link it to the compound component. (The name is what you will see in the primary tool bar)

    Choose EDIT>CREATE>NAME

    and as before give your new line a name and press return. Choose it in the Styles list, then choose the Compound>mynewline

    from the components list, then choose EDIT>LINK.

    Last thing to do is to

    FILE>SAVE

    Now your new line should appear in the list of custom linestyles ready to be placed.

    See Also

    http://communities.bentley.com/products/microstation/w/microstation__wiki/4188.aspx

    Other language sources

    Français

    • MicroStation
    • Custom Linestyles
    • how to
    • SELECTsupport
    • Share
    • History
    • More
    • Cancel
    • Dervalcanny Created by Dervalcanny
    • When: Mon, Nov 18 2013 7:33 AM
    • Aimable Niyibizi Last revision by Bentley Colleague Aimable Niyibizi
    • When: Fri, Oct 28 2016 11:58 AM
    • Revisions: 8
    • Comments: 0
    Recommended
    Related
    Communities
    • Home
    • Getting Started
    • Community Central
    • Products
    • Support
    • Secure File Upload
    • Feedback
    Support and Services
    • Home
    • Product Support
    • Downloads
    • Subscription Services Portal
    Training and Learning
    • Home
    • About Bentley Institute
    • My Learning History
    • Reference Books
    Social Media
    •    LinkedIn
    •    Facebook
    •    Twitter
    •    YouTube
    •    RSS Feed
    •    Email

    © 2021 Bentley Systems, Incorporated  |  Contact Us  |  Privacy |  Terms of Use  |  Cookies