Perhaps you can use the code at post #10
You can however still use LMs' ODX Wrapper by referencing the drawing filename for variable oldprefix
e.g.
Given the Filename prefix is the same as the Layer names prefixes.
Drawing name: 85391-FloorPlan.dwg
85391-FloorPlan.dwgCode:(setq fname (vla-get-name (vla-get-ActiveDocument (vlax-get-acad-object))))
HTHCode:(if (assoc (setq OldPrefix (substr fname 1 5)) '(("65477" . "477")("85391" . "391")("297671" . "671"))) (dothis) )






Reply With Quote


Bookmarks