lklo
Industrial
- Nov 24, 2010
- 226
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
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