.
The checkbox/tickbox in Inv Options -> Sketches -> Look at sketch plane on sketch creation has been ticked/checked
If I edit a sketch manually the model will rotate around so I can see the sketch clearly
If I edit the sketch using a sub-routine in VBA the model doesn't move
If I enquire the property SketchOptions.ParallelViewOnSketchCreation it comes back as True
Why does the model move when done manually, but not programatically ?
What's going on ?
Is this a bug ?
TIA
Solved! Go to Solution.
Solved by MegaJerk. Go to Solution.
Because the entire purpose of having buttons (GUI Commands) is to take away the hassle of dealing with the minutia of whichever tasks the user intends to do, while the purpose of exposing an API full of those commands is to allow the user to take complete and total control over the smallest details of any task (that’s exposed) throughout the software.
All sorts of beneficial code is running behind the scenes whenever you use those dialog boxes, while you must write all of those extra bells and whistles yourself when it comes down to the programming side. It could be as simple as checking for that property (SketchOptions. ParallelViewOnSketchCreation) and then using one of many camera methods to position the camera based on the property values.
.
Thanks for the reply and explanation.
Last time I did any programming that involved graphics it was with AutoLisp in Autocad. You just needed to set the system variable and the application took care of it. I was hoping the Sketch Option for Look at on sketch creation was the same.
I was racking my brains trying to find something in the Programming Help and even by looking the the Object Browser. Basically I looked for View and Orientation. I didn't think to look for Camera.
I will get back and hit Solution immeidately I found what I'm looking for
In the meantime, thanks again. Knowing what to look for is half the problem to begin with