×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

API - ModelDoc - Visual User Interaction

API - ModelDoc - Visual User Interaction

API - ModelDoc - Visual User Interaction

(OP)
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.....

RE: API - ModelDoc - Visual User Interaction

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

So maybe if you perhaps clarify your request I can ...

RE: API - ModelDoc - Visual User Interaction

(OP)
>>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?

RE: API - ModelDoc - Visual User Interaction

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.

RE: API - ModelDoc - Visual User Interaction

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.

RE: API - ModelDoc - Visual User Interaction

(OP)
It seems that the best thing about when one is first learning the API is that most of your questions have answers  :/

RE: API - ModelDoc - Visual User Interaction

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.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources