Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

API function add mate 1

Status
Not open for further replies.

IvanaX

Computer
Jun 29, 2008
10
0
0
DE
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.
 
Replies continue below

Recommended for you

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.

API Help said:
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)
 
Status
Not open for further replies.
Back
Top