- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi all
I have a situation with AutoCAD model imports from inventor whereby I am needing to move AutoCAD entities (3d solids) to predefined AutoCAD layers (all currently on layer 0) based on the entities material property. The AutoCAD material property is transferred from Inventor (part appearance) but in some cases the transfer will result in duplication of materials in AutoCAD. So for example I am looking for an AutoCAD material of "Beams" but might have "Beams(1), beams(2) etc". The lisp I have will successfully move objects to the correct layer (which will have the same name as the material property) but fails for the duplications. These duplications will always have a (*) tagged onto the end of what I need, * being some random number.
I am now trying to iterate through the AutoCAD model and change materials from say "Beams(1), beams(*)" to the correct material "Beams" so that I can then process with my working lisp.
my knowledge of lisp is shaky at best so below is my latest attempt which is not working. Any help, ideas, suggestions are much appreciated.
Solved! Go to Solution.