Hi everyone,
can I get the (3D) "parallelepiped" containing a grouped object?
can I get the (2D) rectangle containing a grouped object?
thanks a lot.
Best regards,
Paolo
Hi Paolo,
what do you mean by "containing a grouped object"? It's not quite clear (at least to me ;-).
Can you provide DGN model as an example to illustrate what structure the objects have?
Also please specify exactly what V8i version do you use. There have been many V8i versions released with some VBA API enhancements in later versions.
Regards,
Jan
Bentley Accredited Developer: iTwin Platform - AssociateLabyrinth Technology | dev.notes() | cad.point
Hi Jan,
a grouoped object is a selection of several objects added together using CTRL+G.
How can I attach a DGN file here?
v8i - 08.11.05.17
Paolo Maggiani said:How can I attach a DGN file here?
While editing your post, use the Insert|Insert image/video/file button.
Paolo Maggiani said:can I get the (3D) "parallelepiped" containing a grouped object? can I get the (2D) rectangle containing a grouped object?
I think what you want is the range of an element: Element.Range.
Element.Range
Regards, Jon Summers LA Solutions
How could I pass the element name to the code?
I wish to select an object and get back the range of that object by the code:
MsgBox Element.Range
but I got error "424", "Object required".
Thanks
Paolo Maggiani said:How could I pass the element name to the code?
Write a VBA class that Implements ILocateCommandEvents. Here's an article that shows how to pick a line element.
Implements ILocateCommandEvents
Thanks Jon
Some question
1. Where could I find free Microstation VBA manual (or similar) for rookie?
2. Is it possible "manage" (move, copy, do visible edge, etc....) using object's name?
3. How can I pass (if possible) parameters to Microstation Dialog boxes
Above all I refer about the "Visible edges" dialog box, parameters for:
A. View
B. Boundary
C. Accuracy
4. How can I assign the focus to a view (1 to 8) by code?
5. How can I close all views by code?
Thanks a lot.
Paolo Maggiani said:Where could I find free Microstation VBA manual
VBA help is delivered with MicroStation.
Bentley Systems publish Learning MicroStation VBA.
VBA help is full of examples. We publish more VBA examples.
Paolo Maggiani said: How can I pass (if possible) parameters to Microstation Dialog boxes
That's tricky. MicroStation dialogs and VBA use incompatible technologies. In some cases you can use what Bentley Systems call an access string. Once way to find what access strings are available for a particular dialog is to record a VBA macro and inspect the result.
Paolo Maggiani said:How can I assign the focus to a view
Why would you want to? All views in MicroStation are equally active. The VBA Views collection provides programmatic access.
Views