Bentley Communities
Bentley Communities
  • Site
  • User
  • Site
  • Search
  • User
MicroStation
  • Product Communities
MicroStation
[Archived] AskInga Wiki Convert simple shapes to linestrings with this VBA
    • Sign In

    • -AskInga
      • +3D MicroStation
      • +AccuDraw Secrets
      • +Animation - Rendering
      • +Behind The Scenes
      • +Cells
      • +Colours
      • +Conversion - Translation
      • +Coordinate Input
      • +Design Settings
      • +Dimensions
      • +DWG
      • +EDG
      • -Element Manipulation
        • AccuSnap shortcuts
        • Active Angle Assistant macro **UPDATED**
        • Adjust the holes inside a group hole
        • Align your elements
        • Analyze your curves
        • Auto-drop multi-lines as you place them
        • Automate the locking of your elements
        • Better intersection snapping in V7
        • Bring elements to front
        • Change associative hatch colour
        • Change complex shape to simple shape
        • Change fence mode from status bar
        • Change hatch symbology
        • Change the display order of your elements
        • Change verticies with copy parallel
        • Clipping elements with fences turns them into shapes
        • Combine - merge existing shapes
        • Construct a circle tangent to three lines in pre-XM
        • Construct tangent circles in XM
        • Control pattern-hatch placement
        • Convert simple shapes to linestrings with this VBA
        • Cool graphics with array
        • Copy a complex shape parallel
        • Copy selection sets with the CTRL key
        • Create an element halo with this macro
        • Draw revision clouds in MicroStation XM
        • Draw revision clouds in pre-XM MicroStation
        • Efficient intersection snapping
        • Enabling a disabled AccuSnap
        • Faster flood fills
        • Force input focus into key-in window
        • Get to AccuDraw and PopSet settings faster
        • Get to AccuSnap settings faster
        • Hatch on the active level
        • Hatch selected areas dynamically
        • Hatching alternating areas
        • Hide an element by key-in
        • Hide elements by using named groups
        • Hide elements by using options in right-click menus
        • How to draw a line perpendicular to an arc at a specific point
        • Identify filled shapes by poking on inside
        • If copying from the clipboard doesn't work
        • LA Solutions announces FlexiTable for MicroStation
        • Learning MicroStation is so easy!
        • Lock Tags to prevent manipulation
        • Make move element behave like V7
        • Match and change
        • Measure a distance with copy parallel
        • Measure multiple elements
        • Measure selected areas dynamically
        • Measure slopes, latitudes and departures with this macro
        • MicroStation is easy
        • Missing edit handles
        • Modify - sweeten a b-spline
        • Modify handles for multiple elements
        • Modifying some but not all element handles
        • More on flood fills
        • Move hatch intersection point with ease
        • Multiple copies of something
        • Need lots of holes?
        • Need to flatten a file
        • Place an arc by edge an a smartLine
        • Place an arc by its length in V7
        • Place an arc by its length in V8
        • Place an arc tangent to another element
        • Place an arc tangent to three elements
        • Place cells, line styles and patterns to scale with this macro
        • Place composite curve - default setting
        • Play bingo with GeoGraphics!
        • Pop-Up snaps menu
        • Popup for available tasks
        • Recall AccuDraw keyins
        • Right click on element to exchange into that file
        • Right click on element to open another instance of MicroStation
        • Scale - rotate elements about their origin
        • Stretch your elements without a placing fence
        • Suspending AccuSnap
        • The active angle dialog
        • The rules
        • Toggle between tangent points
        • Total length of lines
        • Transient elements in MicroStation V8
        • Understanding PopSet
        • Unlock angle preservation when manipulating handles
        • Unlock angle preservation when modifying fence vertices
        • Use clipboard operations to salvage pre-edited graphics
        • Use element manipulation tool on references
        • Use multiple cutters with the trim elements tool
        • Use the space bar to toggle the axis lock
        • What drop element has no use fence
      • +Element Properties
      • +Element Selection
      • +Freeware - Shareware
      • +Interface Look And Feel
      • +Internet - E-Links - Links
      • +Keyins
      • +Levels
      • +Line Styles
      • +Models
      • +MSM Archive
      • +Other
      • +Presentations
      • +Printing - Plotting
      • +Programming - Automation
      • +Rasters - Images
      • +References
      • +Tags - Data Fields - Fields
      • +Text - Fonts - Annotation
      • +Views
      • +Windows - Interacting With
      • +Workspaces - Configuration
    • graffiti

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

    Convert simple shapes to linestrings with this VBA

    AskInga logo

    Original Article Date: April 5, 2005 

    Authored and contributed by Gerald Hernandez, this terrific little utility gives you an alternate solution to the age old question of "How can I drop my simple shapes down to line strings?".

    Download 241.zip and extract ShapeToLineString.mvba from the zip file.
    Place the mvba in the folder pointed to by MS_VBASEARCHDIRECTORIES.
    Keyin vba load shapetolinestring to load the project, or...
    Configure MS_VBAAUTOLOADPROJECTS to automatically load the mvba project upon startup.
    Keyin vba run shapetolinestring to run the macro, or....
    Place the keyin on a function key or custom button for quick and easy access.

    Once loaded it will convert all simple shapes within an existing selection set or fence to line string elements.

    This program is supplied as is. This program does not come with support. AskInga, Bentley Systems Inc., and the author of the program assumes no liability for damages direct, indirect, or consequential, which may result from the use of this program. Use this program at your own risk.

    AskInga Article #241

    • Askinga
    • FreewareShareware
    • Article
    • Share
    • History
    • More
    • Cancel
    • Hannah Blye Created by Hannah Blye
    • When: Wed, May 28 2008 4:18 PM
    • Inga Morozoff Last revision by Bentley Colleague Inga Morozoff
    • When: Mon, Jun 14 2010 8:40 AM
    • Revisions: 3
    • 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

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