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
>> >>
>> >>
>> >
>> >
>>
>>
>
>