fcporto Posted March 5, 2010 Share Posted March 5, 2010 Hello, Does anyone know how can i do a autolisp rotine that links the layers of the dwg file to an external file like txt or excel? So that we can for instance change the color of its layer in the dwg according to two columns in the external file, the first one with the layer name and the second on with its' future color. Best regards Quote Link to comment Share on other sites More sharing options...
Hippe013 Posted March 5, 2010 Share Posted March 5, 2010 What you are asking can surely be done. Though you may want to post this thread in the AutoLISP, VBA, the CUI & Customisation. I am certain someone there will be able to help you. Quote Link to comment Share on other sites More sharing options...
Cad64 Posted March 5, 2010 Share Posted March 5, 2010 No need to post a new thread. I have moved this request to the Lisp and Customization section. Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted March 5, 2010 Share Posted March 5, 2010 Yes, the settings could be imported, but not real-time. Quote Link to comment Share on other sites More sharing options...
BIGAL Posted March 9, 2010 Share Posted March 9, 2010 Can be done pretty easy we had a txt file that contains the info 1234567890123456789012345678901234567890 Newname nickname Col LineType brick--1 brick--1 1 continuous ceiling--2 ceiling--2 6 continuous ceiling--3 ceiling--3 6 continuous ceiling--5 ceiling--5 6 continuous The new name is the layer name, the nickname is the variable name within a lisp program this was done so a lisp program works without ever actually knowing the layer name a client wants. This was a commercial product hence clients changed the text file. In turn the lisp writes a script file after reading the text file which changes the layers properties or creates new layers. The layer setup would normally be ran as a first command or at any time if you realised wrong answers were being used but its just a small part of an overall package. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.