Author Topic: Help With Setting Lineweights via AutoLISP  (Read 1195 times)

0 Members and 1 Guest are viewing this topic.

Dave M

  • Newt
  • Posts: 196
Help With Setting Lineweights via AutoLISP
« on: December 01, 2016, 04:14:06 PM »
Hi!


I am using the CSVLAYERS.vlx routine to import layers from a .csv file.  It works very well, except for the lineweight option.  I have entered the lineweights I want, but it seems to ignore my choices.  Is there a special way to enter the lineweight to get it to work correctly?


I have attached the routine if anyone wants to try it out for themselves.


Thanks!
Civil 3D 2018 - Microstation SS4 - Windows 10 - Dropbox

kdub_nz

  • Mesozoic keyThumper
  • SuperMod
  • Water Moccasin
  • Posts: 2159
  • class keyThumper<T>:ILazy<T>
Re: Help With Setting Lineweights via AutoLISP
« Reply #1 on: December 01, 2016, 04:44:01 PM »
Dave,
How can anyone help when the code is compiled.
Do you have the source so someone can see what is happening ?
Called Kerry in my other life
Retired; but they dragged me back in !

I live at UTC + 13.00

---
some people complain about loading the dishwasher.
Sometimes the question is more important than the answer.

Dave M

  • Newt
  • Posts: 196
Re: Help With Setting Lineweights via AutoLISP
« Reply #2 on: December 01, 2016, 05:02:59 PM »
Sorry, I do not have the source.  I did not write the routine.


I found the answer to my question on my own.  When entering the lineweight, just enter the number without decimals, i.e. 0.6 mm = 60, 0.25 mm = 25, etc.


Thanks!
« Last Edit: December 01, 2016, 05:13:55 PM by Dave M »
Civil 3D 2018 - Microstation SS4 - Windows 10 - Dropbox

kdub_nz

  • Mesozoic keyThumper
  • SuperMod
  • Water Moccasin
  • Posts: 2159
  • class keyThumper<T>:ILazy<T>
Re: Help With Setting Lineweights via AutoLISP
« Reply #3 on: December 01, 2016, 07:06:24 PM »
Great !
Called Kerry in my other life
Retired; but they dragged me back in !

I live at UTC + 13.00

---
some people complain about loading the dishwasher.
Sometimes the question is more important than the answer.