How can a clip region of a reference be reset from within a vba/mdl program. I can see a set clip option but no clear way of obtaining the exisiting one. Any ides sample code?
A MicroStation attachment may have one or more masks. Masks are used to hide part of an attachment in one or more views. Note that …
A clip boundary, if set, will clip the presentation of elements in the attachment in a specified view. The elements themselves continue to exist in the read-only attachment. Although they are shown clipped, the original element is not changed.
Unknown said:How can a clip region of a reference be reset from within a VBA macro?
Nothing is impossible to a hardcore VBA programmer, but getting at the required information would be tedious. Modifying it would definitely be hard work.
In other words, prefer MDL for this job.
Unknown said:How can a clip region of a reference be reset from within an MDL program?
Use mdlRefFile_getInfo to obtain a ReferenceFile* pointer. That pointer leads you through a maze of structs defined in header file refernce.h (my spelling is correct).
Put on your spelunking gear. Inside struct clip_desc you will find …
The clipP array stores all the clip masks. Each mask is separated from its predecessor by a special numeric value DISCONNECT. DISCONNECT is #defined in MDL header msdefs.h.
To answer your question, you need to …
I hope the above clarifies why you would not want to use VBA 8-)
Regards, Jon Summers LA Solutions