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

RE: [V8i VBA] Cell Creation and Annotation Scale

$
0
0

[quote user="Jon Summers"]

Try this (you realise I'm grasping at straws?)...

[/quote]
Heh, it's probably the first time I've found you struggling with a query :/
I tried changing the variable type but its the same error. I get the feeling its because the cell only exists in memory and not in the file (like you suggested in your first reply). Any propertyhandler examples I've seen involve enumerating and scanning a file which is possible to do after the cell creation but gives rise to the potential of applying annotation scale to other cells in the active model which would be undesirable. I do have the option of not using annotation cells and simply adding a textbox to my form and using its value to set the cell scale e.g.:
 Set oCell = CreateCellElement2(cellName, pts(N), Point3dFromXYZ(tbCellScale.Value, tbCellScale.Value, tbCellScale.Value), True, matrix)
Not necessarily elegant but it does work.
Perhaps Robert Hook or Yongan.Fu can confirm (if either see this topic) if its possible(or not) in VBA to apply the useannotationscale property during cell creation.

Viewing all articles
Browse latest Browse all 7260

Trending Articles