×
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 function add mate

API function add mate

API function add mate

(OP)
Is it possible to add mate, without first select something with selectbyID2? Or how to make selection invisible. I don't like it, when macro is running to see what it is doing.  

RE: API function add mate

Yes, it is possible to add mates without selecting something with SelectByID2.  You can use any selection method you want.  It is not possible to add mates without selecting something by some method.  It is possible to prevent graphics update during selection by setting the EnableGraphicsUpdate property of the active ModelView to False.  Just don't forget to add an error handler to change back to True in the event something goes wrong.

Quote (API Help):


ModelView::EnableGraphicsUpdate

Description

This property gets or sets whether or not to refresh the model view.

Syntax (OLE Automation)

State = ModelView.EnableGraphicsUpdate (VB Get property)

ModelView.EnableGraphicsUpdate = State (VB Set property)

State = ModelView.GetEnableGraphicsUpdate ( ) (C++ Get property)

ModelView.SetEnableGraphicsUpdate ( State ) (C++ Set property)

Output:
 (VARIANT_BOOL) State
 TRUE to refresh the model view, FALSE to not
 
Syntax (COM)

status = ModelView->get_EnableGraphicsUpdate ( &State )

status = ModelView->put_EnableGraphicsUpdate ( State )

Output:
 (VARIANT_BOOL) State
 TRUE to refresh the model view, FALSE to not
 
Return:
 (HRESULT) status
 S_OK if successful
 

Remarks

This property affects whether to refresh the model view during a selection, such as Entity::Select4 or Feature::Select2.



-handleman, CSWP (The new, easy test)

RE: API function add mate

(OP)
yes, just what I need. Thanks

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