Display iProperties dialog for a specific part

Display iProperties dialog for a specific part

Anonymous
Not applicable
343 Views
4 Replies
Message 1 of 5

Display iProperties dialog for a specific part

Anonymous
Not applicable
Is there any way to programatically display the built in iProperties dialog for a given part in an assembly? Thanks for any help, Simon
0 Likes
344 Views
4 Replies
Replies (4)
Message 2 of 5

Anonymous
Not applicable
Nit sure I understand what you are wanting to do.. The API gives you access to all the document properties to use or display them in your own dialog. If you just want to bring up the iProperties dialog then you can do something like this Private Sub InventorCommand(sCommandName As String) ' Run the Isolate command. Dim oControlDef As ControlDefinition Set oControlDef = ThisApplication.CommandManager.ControlDefinitions.Item(sCommandName) oControlDef.Execute End Sub Public Sub props() Call InventorCommand("AppiPropertiesWrapperCmd") End Sub -- Kent Keller Autodesk Discussion Forum Facilitator "Simon" wrote in message news:418fdd55$1_3@newsprd01... > Is there any way to programatically display the built in iProperties dialog > for a given part in an assembly? > > Thanks for any help, > > Simon > >
0 Likes
Message 3 of 5

Anonymous
Not applicable
Kent, Thanks for the quick reply. I've tried calling "AppiPropertiesWrapperCmd" before, but it only appears to fire the properties dialog for the top level assembly. Here's what I'm trying to achieve: I have a browser as part of an addin, from that browser I wish to call the properties dialog for a part file as if the user had selected an instance of that part and called the properties command from the context menu. I could put together my own custom dialog for this, but I really don't want to reinvent the wheel unless its absolutely necessary! Thanks, Simon "Kent Keller" wrote in message news:418fe701$1_2@newsprd01... > Nit sure I understand what you are wanting to do.. The API gives you > access > to all the document properties to use or display them in your own dialog. > > If you just want to bring up the iProperties dialog then you can do > something like this > > Private Sub InventorCommand(sCommandName As String) > > ' Run the Isolate command. > Dim oControlDef As ControlDefinition > Set oControlDef = > ThisApplication.CommandManager.ControlDefinitions.Item(sCommandName) > > oControlDef.Execute > > End Sub > Public Sub props() > Call InventorCommand("AppiPropertiesWrapperCmd") > End Sub > > > > -- > Kent Keller > Autodesk Discussion Forum Facilitator > > > "Simon" wrote in message news:418fdd55$1_3@newsprd01... >> Is there any way to programatically display the built in iProperties > dialog >> for a given part in an assembly? >> >> Thanks for any help, >> >> Simon >> >> > >
0 Likes
Message 4 of 5

Anonymous
Not applicable
Simon, Try using "AssemblyPropertiesCmd" instead. This puts up the Properties dialog for a selected occurrence or if an occurrence is not selected, prompts you to select one. Sanjay- "Simon" wrote in message news:418ff044$1_2@newsprd01... > Kent, > > Thanks for the quick reply. I've tried calling "AppiPropertiesWrapperCmd" > before, but it only appears to fire the properties dialog for the top level > assembly. > > Here's what I'm trying to achieve: I have a browser as part of an addin, > from that browser I wish to call the properties dialog for a part file as if > the user had selected an instance of that part and called the properties > command from the context menu. I could put together my own custom dialog for > this, but I really don't want to reinvent the wheel unless its absolutely > necessary! > > Thanks, > > Simon > > > "Kent Keller" wrote in message > news:418fe701$1_2@newsprd01... > > Nit sure I understand what you are wanting to do.. The API gives you > > access > > to all the document properties to use or display them in your own dialog. > > > > If you just want to bring up the iProperties dialog then you can do > > something like this > > > > Private Sub InventorCommand(sCommandName As String) > > > > ' Run the Isolate command. > > Dim oControlDef As ControlDefinition > > Set oControlDef = > > ThisApplication.CommandManager.ControlDefinitions.Item(sCommandName) > > > > oControlDef.Execute > > > > End Sub > > Public Sub props() > > Call InventorCommand("AppiPropertiesWrapperCmd") > > End Sub > > > > > > > > -- > > Kent Keller > > Autodesk Discussion Forum Facilitator > > > > > > "Simon" wrote in message news:418fdd55$1_3@newsprd01... > >> Is there any way to programatically display the built in iProperties > > dialog > >> for a given part in an assembly? > >> > >> Thanks for any help, > >> > >> Simon > >> > >> > > > > > >
0 Likes
Message 5 of 5

Anonymous
Not applicable
Thanks Sanjay, thats exactly what I wanted! Regards, Simon "Sanjay Ramaswamy (Autodesk)" wrote in message news:418ffe2b$1_2@newsprd01... > Simon, > > Try using "AssemblyPropertiesCmd" instead. This puts up the Properties > dialog for a selected occurrence or if an occurrence is not selected, > prompts you to select one. > > Sanjay- > > "Simon" wrote in message news:418ff044$1_2@newsprd01... >> Kent, >> >> Thanks for the quick reply. I've tried calling "AppiPropertiesWrapperCmd" >> before, but it only appears to fire the properties dialog for the top > level >> assembly. >> >> Here's what I'm trying to achieve: I have a browser as part of an addin, >> from that browser I wish to call the properties dialog for a part file as > if >> the user had selected an instance of that part and called the properties >> command from the context menu. I could put together my own custom dialog > for >> this, but I really don't want to reinvent the wheel unless its absolutely >> necessary! >> >> Thanks, >> >> Simon >> >> >> "Kent Keller" wrote in message >> news:418fe701$1_2@newsprd01... >> > Nit sure I understand what you are wanting to do.. The API gives you >> > access >> > to all the document properties to use or display them in your own > dialog. >> > >> > If you just want to bring up the iProperties dialog then you can do >> > something like this >> > >> > Private Sub InventorCommand(sCommandName As String) >> > >> > ' Run the Isolate command. >> > Dim oControlDef As ControlDefinition >> > Set oControlDef = >> > ThisApplication.CommandManager.ControlDefinitions.Item(sCommandName) >> > >> > oControlDef.Execute >> > >> > End Sub >> > Public Sub props() >> > Call InventorCommand("AppiPropertiesWrapperCmd") >> > End Sub >> > >> > >> > >> > -- >> > Kent Keller >> > Autodesk Discussion Forum Facilitator >> > >> > >> > "Simon" wrote in message news:418fdd55$1_3@newsprd01... >> >> Is there any way to programatically display the built in iProperties >> > dialog >> >> for a given part in an assembly? >> >> >> >> Thanks for any help, >> >> >> >> Simon >> >> >> >> >> > >> > >> >> > >
0 Likes