Changine linetypes of objects in Microstation XM Powerdraft edition

Hi,

I have a drawing that was created in AutoCAD. When saved as dgn it retains some linetypes from AutoCAD such as Continuous and DGN Style 2. I would like to select these objects and change their linetype. For example, select everything with a Continuous linetype and change them to linetype 0. Then select everything with linetype DGN Style 2 and change them to linetype 2, etc.

Is this possible using VBA? Can somebody help? My knowledge of VBA is very very limited

Many thanks in advance for your help

Parents Reply
  • Thanks for the reply. Attached is a test drawing. It includes text with linestyle Continuous and text with linestyle DGN Style 2.

    I have tried the macro recorder but it doesn't work (I go to Edit->Select by Attributes and select everything with continuous and then change the linestyle. Then everything with DGN Style 2 and change the linestyle).

    As I wrote above, I also tried the remapping options via csv but this didn't work either.

    Thanks for the help

    Test Drawing.rar
Children
  • Try running these commands (in sequence):

    mdl silentload selectby
    selectby type none
    selectby type text
    selectby style on
    selectby style DGN Style 2
    selectby execute
    change element extended
    active style Continuous
    set item toolsettings useactiveattributes=1
    set item toolsettings changestyleenable=1
    xy=#
    NULL

    If that works for your particular situation, you could "script" that... or queue up the commands in a VBA macro.