Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski on being selected by the Eng-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
Joined
Jun 29, 2008
Messages
10
Location
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.
 
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)
 
yes, just what I need. Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top