Import form Excel layers to Autocad

Import form Excel layers to Autocad

ahmed.xeng
Advocate Advocate
18,511 Views
25 Replies
Message 1 of 26

Import form Excel layers to Autocad

ahmed.xeng
Advocate
Advocate

Hello Every one

 

Is it Possible to import form Excel layers to Autocad 2021

without using scripts or lisps ?

 

 

 

0 Likes
Accepted solutions (1)
18,512 Views
25 Replies
Replies (25)
Message 21 of 26

dseshanZQS9M
Explorer
Explorer

Thank you chriscowgill.

I need to use Dashed and Centre line Type,  

0 Likes
Message 22 of 26

Kent1Cooper
Consultant
Consultant

@dseshanZQS9M wrote:

.... I need to use Dashed and Centre line Type,  


If it's ultimately going into a command-line Layer command, it is not necessary for those linetypes to be already loaded into the drawing.  If they're linetypes that come with AutoCAD, a Layer command will find them [which other approaches, such as (entmake)ing the Layers, won't if they're not loaded].

 

What is needed is to incorporate a linetype component into the Layer command.  In @leeminardi's latest spreadsheet file, there is nothing of that, because all the Layers there are to be Continuous linetype, and that's the default, so it doesn't need to be spelled out in the Layer command.  It should be "addable" easily enough.

Kent Cooper, AIA
0 Likes
Message 23 of 26

leeminardi
Mentor
Mentor

Attached is a sample Excel file that includes the specification of line type for the created layers.  The syntax is a bit unwieldy but keep in mind that char(34) is used to create a " for use in the vlisp command that should not be confused with the " needed for the Excel concatenate function.

leeminardi_0-1688423274402.png

leeminardi_0-1688423350090.png

 

 

 

lee.minardi
Message 24 of 26

vladimir_michl
Advisor
Advisor

You can also try the CsvLayers freeware tool - see:

https://www.cadforum.cz/en/how-to-create-dwg-layers-from-a-list-in-csv-excel-tip7193

 

Vladimir Michl, www.arkance-systems.cz  -  www.cadforum.cz

 

0 Likes
Message 25 of 26

manso86
Enthusiast
Enthusiast

Hello @chriscowgill7373 which feature do you mean? Thanks 😄

0 Likes
Message 26 of 26

ian
Participant
Participant

Hi Leeminardi

 

Your excel file inside the zip is great thank you.  Works a treat. 

 

Ian Lapper

0 Likes