Quantcast
Channel: MicroStation Programming - Forum - Recent Threads
Viewing all articles
Browse latest Browse all 1677

Re: detect if level exist and create it (vba 8.05)

$
0
0

Okette2:
If Mylevel.Name = NameLvl

Better use VB: Strcomp for text compare

Okette2:
 ActiveSettings.Level = ActiveDesignFile.Levels(NameLvl)

You have to create the level within the levels object before setting it active.

From the VBA Help:"Whenever you change any aspect of a Level, you should subsequently call Levels.Rewrite to make the change permanent".


Viewing all articles
Browse latest Browse all 1677

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>