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!

draftingCustomSymbolBuilder

Status
Not open for further replies.

lklo

Industrial
Joined
Nov 24, 2010
Messages
226
Location
DK
Hi -
I am working on a small journal including a Blockstyler dialog.
It is build so I can place some predefined customSymbols on a drawingsheet.
I have several dropdown's in dialog - and user can simply choose one or more of the listed customsymbols.
In my program I have a arraylist containing all filepaths to the the symbols - and some kind of a alias array used to the content in the dropdown dialog....
Everything is working very well....But I still want to optimize the program regarding the arraylist of filepaths.
Instead of filepaths , it would be nice (and easier to maintain) ,if I simply could use the symbol name itself.

To insert the symbols I use the draftingCustomSymbolBuilder. It has a member SelectSymbol(string), which require the entire filepath of the customsymbol....
But say I only list all symbolnames in my arraylist , I would then need a method to extract the filepath from a symbolname - listed in a arraylist....Does any of you have a suggest - how to ??
(I know how to extract symbolnames and filepaths from a symbolcollection in a drawing part)...
But in my case I "only" have the symbolnames as string declared in my arraylist - or maybe they should be declared in a another type ?

*
*
*
draftingCustomSymbolBuilder1.SelectSymbol("C:\Users\testSetup\my_symbol.sym.prt)
*
*
*

regards lklo
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top