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
  • 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.

      

Children
No Data