Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations MintJulep on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

API - ModelDoc - Visual User Interaction

Status
Not open for further replies.

rocheey

Industrial
Jan 21, 2001
230
Is there a way to generate this thru code? Im not looking for a specific implementation (at least yet) but would like to be able to give the user some dynamic visual feedback, like when one extrudes or moves a dimension.....
 
Replies continue below

Recommended for you

.....? Where is the ? You started to ask a question but then you ....

So maybe if you perhaps clarify your request I can ...
 
>>Where is the ?

The question was in the topic. I am wanting to control a dyanamic screen updating, much like when one creates/edits an extrude feature: as the user moves the mouse, the translucent preview automatically follows.

Im even willing to do it with a sketch, using
ModelDocExtension::MoveOrCopy, but Id need control over the process so that the user cannot create crap, and, of course, maybe a code snippet to get me going?
 
This may be possible, but it depends on what you want to dynamically change. I suppose you could repeatedly call rebuilds in response to mouse movements or maybe triggered by an "update" button, but other than this I'm not sure if there is any way to do this. I have never seen visual feedback created through the api that wasn't just a rebuild.
 
I am not sure if you can actually show results of an API Code without ending the code. You could repeatedly loop the code but I would imagine that could be a nightmare to run. I would have to say that is way out of my league for programming (for now anyway). I have been doing alot of research on API and Macros and I have not come across anything like that on the web yet. I will keep it in mind though, if I do find something I will let you know.
 
It seems that the best thing about when one is first learning the API is that most of your questions have answers :/
 
I agree with you on that one. I have posted a few API questions in the past and had no response at all, not just here but other forums as well, including Solidworks website. Don't be discouraged by the lack of support you find on the web. Try and remember that API's are so highly customizable that what you may think of trying to do vs. what I may think of trying to do may never even cross the same path or even come close. What I have found to be useful is to download as many code snippits as I can and use bits and pieces from what I need to so that I can accomplish my goals with the macro. It's not exactly rocket science but it would be nice to know the limitations. So far I have been able to accomplish most of the stuff I tried to with macros.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor