PDA

View Full Version : Seeking OSDM Macro to write expanded browser structure to file.


John Struthers
12-12-2002, 06:00 AM
Has anyone created an OSDM (SolidDesigner) macro which automatically expands the structure browser contents and writes all of the details to a text file? The PRINT_BROWSER_TREE command only outputs the content as currently displayed in the browser, it doesn't perform a total tree expand prior to writing the file.

Thanks in advance.

dszostak
12-12-2002, 08:33 AM
Extracting Bill-of-Material related infromation from the Structure Browser should be posted in the Enchancement Forum. OSDM could do more in this area, without having to go to Annotation, to help end-user. Start an enhancement post and let's get some ideas/suggestions.

Paul Liu
12-12-2002, 05:34 PM
All you need to do is execute this following command prior to your print_browser_tree.

(oli::sd-browser-exec-cmd "parcel-gbrowser" :expand-tree 0)

I hope this helps.

:D

John Struthers
12-12-2002, 11:45 PM
Hi David:

Many thanks for your comments regarding BOM output from the Structure browser. Yes, some type of formatted BOM output would be useful - for example - a parts list with associated quantities.

Hi Paul:

Thanks for the 'expand-tree' command which does exactly what I want prior to the print_browser_tree function.

Trying to locate useful info like this within the OSDM help docs can be difficult - :confused: - even the OSDM 'Recorder' function doesn't trace command execution down to the required level of detail.

Paul Liu
12-13-2002, 12:02 AM
Hi John,

The OSDM Development Kit, formerly known as the Integration Kit is a good resource. You can find this at the bottom of the "Help On Product" page.

Good luck, and have fun!

John Struthers
12-13-2002, 02:34 AM
Originally posted by Paul Liu
Hi John,

The OSDM Development Kit, formerly known as the Integration Kit is a good resource. You can find this at the bottom of the "Help On Product" page.

Good luck, and have fun!

Yes, it's all there in the Development Kit docs .... many thanks.