It is currently Sat May 25, 2013 6:12 am

All times are UTC





Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Thu Mar 08, 2007 8:24 am 
Offline
MCAD Lurker

Joined: 04 Mar 2006
Posts: 6
Hello all,

Does anyone know a way to change the default selection method through
inventors API.

For example
I would like to change the selection priority from Part Priority to Face and edge Priority in am assembly file.

Is it possible to do this??

If am able to change the selection Priority if I am selection somthing at the start of my VBA code, But what I am trying to do is change the default selection for a assembly file.


Share on FacebookShare on TwitterShare on DiggShare on DeliciousShare on TumblrShare on Google+
Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 08, 2007 8:43 am 
Offline
MCAD Lurker

Joined: 04 Mar 2006
Posts: 6
Seems like I have found the answer to my own question

It's a new feature to inventor 2008 API

the code would be somthing like

Sub test()

Dim oAssemblyDocument As AssemblyDocument
Set oAssemblyDocument = ThisApplication.ActiveDocument
oAssemblyDocument.SelectionPriority = kSketchSelectionPriority


End Sub

Enjoy


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 08, 2007 7:01 pm 
Offline
MCAD Expert

Joined: 11 Apr 2006
Posts: 1550
Country: Canada
State: Ontario
CAD System: Inventor
Don't know if the setting is saved with the file. Change setting in template and save the template.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
POWERED_BY