Author Topic: generating linetype results in error  (Read 6002 times)

0 Members and 1 Guest are viewing this topic.

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: generating linetype results in error
« Reply #15 on: November 23, 2015, 04:54:52 AM »
Note:
I haven't included Document Locking in my testing.
I assume you will do this at a location where the locking will affect the database modifications more generally.

kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

sybold

  • Newt
  • Posts: 62
Re: generating linetype results in error
« Reply #16 on: December 09, 2015, 06:28:03 AM »
would it be possible to set the upright parameter for the text, like you can do with a .lin file

linetype info
http://help.autodesk.com/view/ACD/2016/ENU/?guid=GUID-FEDCE7EB-4919-43AE-A54E-F3A293DD60CA
« Last Edit: December 09, 2015, 07:20:27 AM by sybold »

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: generating linetype results in error
« Reply #17 on: December 09, 2015, 09:41:24 AM »
Perhaps try something like :
Code - C#: [Select]
  1.  
  2.      ltTR.SetShapeRotationAt(1, 90 * Math.PI / 180);
  3.  
  4.  

OR
Code - C#: [Select]
  1.  
  2.      ltTR.SetShapeRotationAt(1, 45 * Math.PI / 180);
  3.  
  4.  

at code line 54
kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: generating linetype results in error
« Reply #18 on: December 09, 2015, 09:50:21 AM »

Or if you can make and post the .lin file I'll try to reproduce the style in code.
kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

sybold

  • Newt
  • Posts: 62
Re: generating linetype results in error
« Reply #19 on: December 11, 2015, 05:13:08 AM »
Code: [Select]
*HOT_WATER_SUPPLY,---- HW ---- HW ---- HW ---- HW ---- HW ----
A,.5,-.1,["HW",STANDARD,S=.1,U=0.0,X=0.0,Y=-.05],-.3

the U parameter is the rotation as stated in the documentation the U can also be R and A, depending of what you want

Rotation
The rotation angle of the characters to be displayed in the linetype. The rotation angle must be prefixed with U=, R=, or A=.
U= specifies upright or easy-to-read text.
R= specifies relative or tangential rotation with respect to the line.
A= specifies absolute rotation of the text with respect to the origin; that is, all text has the same rotation regardless of its position relative to the line.

the setshaperotation doesn't have the option for a rotation type
« Last Edit: December 11, 2015, 06:23:33 AM by sybold »

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: generating linetype results in error
« Reply #20 on: December 11, 2015, 06:40:20 AM »
I can't make time to play, but here's something to think about :


*TEST-R15,testR15 ---- R15 ---- R15 ---- R15 ----
A,12.7,-5.08,["R15",STANDARD,S=2.54,R=15.0,X=-2.54,Y=-1.27],-5.08

*TEST-U15,testU15 ---- U15 ---- U15 ---- U15 ----
A,12.7,-5.08,["U15",STANDARD,S=2.54,U=15.0,X=-2.54,Y=-1.27],-5.08

*TEST-A15,testA15 ---- A15 ---- A15 ---- A15 ----
A,12.7,-5.08,["A15",STANDARD,S=2.54,A=15.0,X=-2.54,Y=-1.27],-5.08


kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.