Author Topic: Creating a linetype in ACAD.lin  (Read 4971 times)

0 Members and 1 Guest are viewing this topic.

Hangman

  • Guest
Creating a linetype in ACAD.lin
« on: October 17, 2005, 05:05:21 PM »
Hey all,
perhaps this does not apply here, but it is writing code.
So, my question:
Is it possible to designate a layer when writing a linetype ???
For example:
Code: [Select]
*_WWF,Welded Wire Fabric --- X --------------- X --------------- X --- 
A,1.125,-.1375,["X",STANDARD,S=.0625,R=0.0,X=-0.075,Y=-.072125],-.1
I want to put the X on a layer that plots  .003  and the ----- on a layer that plots  .025.
(This is just an example)

Dommy2Hotty

  • Swamp Rat
  • Posts: 1128
Re: Creating a linetype in ACAD.lin
« Reply #1 on: October 17, 2005, 05:19:52 PM »

Hangman

  • Guest
New Question - Same Topic Re: Creating a linetype in ACAD.lin
« Reply #2 on: October 19, 2005, 12:04:09 PM »
Yeah Dommy,
I've looked through this, it explains every detail except possible layer differentials.

I'm guessing by the lack of responses in relation to the views counted, no one knows &/or it's just not possible.  Doht !!!
Nuts...

OK then, here's another question  (Changing header ... ) ???
is it possible to have several attributes in a block linked to one.
Anotherwords,  I want to create a gridline.  And in several locations along that gridline, on the Defpoints layer, I want the designation of that gridline.
So, if I can't designate defpoints layer for the number or letter on that gridline within a linetype, I want to create an attributive block of the gridlines.
The attribute will occur several times along the gridline (10 times for example), however, I don't want ten editing places in the dialog box.  I want to edit the gridline and have one slot to edit and have all 10 attributed blocks along that gridline to update.  Having thirty gridlines going horizontally and thirty gridlines going vertically, I want 60 editable slots in the dialog box that will update 600 attributive blocks.  So I am linking attributive blocks to one editing slot on the dialog box.
Does this make sense ?  Is this possible ?

Thanks everyone for your help, it's greatly appreciated.

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
Re: Creating a linetype in ACAD.lin
« Reply #3 on: October 19, 2005, 01:42:00 PM »
Hey all,
perhaps this does not apply here, but it is writing code.
So, my question:
Is it possible to designate a layer when writing a linetype ???
For example:
Code: [Select]
*_WWF,Welded Wire Fabric --- X --------------- X --------------- X --- 
A,1.125,-.1375,["X",STANDARD,S=.0625,R=0.0,X=-0.075,Y=-.072125],-.1
I want to put the X on a layer that plots  .003  and the ----- on a layer that plots  .025.
(This is just an example)

Not that I have seen, but perhaps in later versions > 2004
I've reached the age where the happy hour is a nap. (°¿°)
Windows 10 core i7 4790k 4Ghz 32GB GTX 970
Please support this web site.

David Hall

  • Automatic Duh Generator
  • King Gator
  • Posts: 4076
Re: Creating a linetype in ACAD.lin
« Reply #4 on: October 19, 2005, 02:13:52 PM »
Heres a thought, could you define a linetype that inserts a block instead of text?  if so, hardcode the layer in the block.  Im thinking of the divide and measure commands that will put a block on a line every nth unit.
Everyone has a photographic memory, Some just don't have film.
They say money can't buy happiness, but it can buy Bacon and that's a close second.
Sometimes the question is more important than the answer. (Thanks Kerry for reminding me)

Crank

  • Water Moccasin
  • Posts: 1503
Re: Creating a linetype in ACAD.lin
« Reply #5 on: October 22, 2005, 07:42:42 AM »
Different layers are only possible with mlines, but then you can only do straight lines...

The best option is to use another text font, or create your own character(s).

Another possibility is to draw 2 lines on top of each other: One for the text and one for the dashes, but that's tricky with the ltscale.
Vault Professional 2023     +     AEC Collection

CTMill

  • Newt
  • Posts: 120
Re: Creating a linetype in ACAD.lin
« Reply #6 on: October 24, 2005, 01:06:37 PM »
take what he said above and do this......

first create your two linetypes.  and then write a lisp routine that will load your linetypes and create your layers and assign the ltypes accordingly.
Civ3d/A2K16

Serge J. Gianolla

  • Guest
Re: Creating a linetype in ACAD.lin
« Reply #7 on: October 24, 2005, 10:01:40 PM »
Quote
Different layers are only possible with mlines, but then you can only do straight lines...

Unfortunately, MLINE does not support layers or LWT!

Crank

  • Water Moccasin
  • Posts: 1503
Re: Creating a linetype in ACAD.lin
« Reply #8 on: October 25, 2005, 07:07:34 AM »
You're right about that, but it's possible to use different colors.
Vault Professional 2023     +     AEC Collection

Serge J. Gianolla

  • Guest
Re: Creating a linetype in ACAD.lin
« Reply #9 on: October 25, 2005, 07:08:54 PM »
You know, they bought GenericCAD, got the portion for MLINEs to implement in AutoCAD 12 and haven't made the slightest effort to improve it! I suppose one way to eliminate competition is to buy the firm and not improving the software and let it go to its natural death. What a shame though MLINES could be a lot more powerful.