Working on a VBA based command that needs to define a clip volume from two points from within a class that implements IPrimitiveCommandEvents.
CadInputQueue.SendKeyin terminates the execution of the command.
The steps that I'm looking to perform in the specific procedure are:
1. Apply clip volume using two points to a specific view
2. fit the view
3. Create saved view
The save view is used later in the command to create a reference attachment.
No. These related API functions are exposed only in C++ currently. Please read the example DrawingComposition in SDK examples folder.
davhum75 said:Working on a VBA based command that needs to define a clip volume from two points from within a class that implements IPrimitiveCommandEvents
Yongan.Fu said:These related API functions are exposed only in C++ currently
Use your IPrimitiveCommandEvents class to collect two data points. Store them in a class variable. On collecting the second data point, you can use CadInputQueue to start the create saved view command and queue the two data points.
IPrimitiveCommandEvents
CadInputQueue
Regards, Jon Summers LA Solutions
A good solution though I will then need to split the command into two parts so as to complete the work it is doing with the saved view.