dimension text too long

dimension text too long

stevenAZVF8
Explorer Explorer
1,432 Views
12 Replies
Message 1 of 13

dimension text too long

stevenAZVF8
Explorer
Explorer

I have:

(setq schrijfliggerID (strcat "%<\\AcObjProp Object(%<\\_ObjId " liggerID ">%).TextString>%"))

(setq typeliggerID (strcat "%<\\AcObjProp Object(%<\\_ObjId " liggerID ">%).Parameter(120).UserVariable\>%"))

 

(setq tekst1 (strcat schrijfliggerID " L=<>" ))

(setq tekst2 (strcat typeliggerID " L=<>" ))

 

then this works: (command "dimlinear" pt1 pt2 "m" tekst1 pt3)

also this works: (command "dimlinear" pt1 pt2 "m" tekst2 pt3)

 

but i want both:

(setq tekst (strcat typeliggerID " " schrijfliggerID " L=<>" ))

(command "dimlinear" pt1 pt2 "m" tekst pt3)

 

but i get: dimension text too long

what can i do?

0 Likes
Accepted solutions (1)
1,433 Views
12 Replies
Replies (12)
Message 2 of 13

ВeekeeCZ
Consultant
Consultant

Any chance you would tell us how long is your too long dimension?

Are you able to do that by the means of AutoCAD?

0 Likes
Message 3 of 13

john.uhden
Mentor
Mentor

Could you please post the values of schrijfligger and typeligger?

Please also post the return of:

setvar ? dim*

I think one of the dimvars is about keeping text inside.

Perhaps it will work if you create multiline values that might fit.

John F. Uhden

0 Likes
Message 4 of 13

stevenAZVF8
Explorer
Explorer

Thanks for trying to help me

 

the values of schrijfliggerID: B.0.1

the values of typeliggerID: HEB220

it is information of a dynamice blocks

 

 

 

setvar ? dim* :

Command: SETVAR
Enter variable name or [?] <ATTREQ>: ?

Enter variable(s) to list <*>: dim*

DIMADEC           0
DIMALT            OFF
DIMALTD           2
DIMALTF           1.0000
DIMALTRND         0.00
DIMALTTD          2
DIMALTTZ          8
DIMALTU           2
DIMALTZ           8
DIMANNO           0                                    (read only)
DIMAPOST          """"
DIMARCSYM         0
DIMASO            ON
DIMASSOC          2
DIMASZ            8.00
DIMATFIT          3
DIMAUNIT          1
DIMAZIN           0
DIMBLK            "DIML"
DIMBLK1           ""
Press ENTER to continue:
DIMBLK2           ""
DIMCEN            3.00
DIMCLRD           256
DIMCLRE           256
DIMCLRT           2
DIMDEC            0
DIMDLE            0.00
DIMDLI            0.00
DIMDSEP           "."
DIMEXE            5.00
DIMEXO            5.00
DIMFIT            4
DIMFRAC           0
DIMFXL            1.00
DIMFXLON          OFF
DIMGAP            4.00
DIMJOGANG         45
DIMJUST           0
DIMLDRBLK         "pijl_leader"
DIMLFAC           1.0000
DIMLIM            OFF
DIMLTEX1          ""
Press ENTER to continue:
DIMLTEX2          ""
DIMLTYPE          ""
DIMLUNIT          2
DIMLWD            -2
DIMLWE            -2
DIMPOST           ""
DIMRND            0.00
DIMSAH            OFF
DIMSCALE          1.00
DIMSD1            OFF
DIMSD2            OFF
DIMSE1            ON
DIMSE2            ON
DIMSHO            ON
DIMSOXD           OFF
DIMSTYLE          "DIM_1_50 (onder)"                   (read only)
DIMTAD            4
DIMTDEC           0
DIMTFAC           1.0000
DIMTFILL          0
DIMTFILLCLR       0
DIMTIH            OFF
Press ENTER to continue:
DIMTIX            ON
DIMTM             0.00
DIMTMOVE          1
DIMTOFL           ON
DIMTOH            OFF
DIMTOL            OFF
DIMTOLJ           1
DIMTP             0.00
DIMTSZ            0.00
DIMTVP            1.0000
DIMTXSTY          "Schaal 1-50"
DIMTXT            10.00
DIMTXTDIRECTION   OFF
DIMTZIN           8
DIMUNIT           2
DIMUPT            OFF
DIMZIN            8
DIMCONSTRAINTICON 3
DIMCONTINUEMODE   1
DIMLAYER          "maten"
DIMPICKBOX        5
DIMTXTRULER       ON
Press ENTER to continue:

Command:
SETVAR

0 Likes
Message 5 of 13

stevenAZVF8
Explorer
Explorer

Thanks for trying to help me

 

the text is:


"%<\\AcObjProp Object(%<\\_ObjId 1878807177568>%).Parameter(120).UserVariable>% %<\\AcObjProp Object(%<\\_ObjId 1878807177568>%).TextString>% L=<>"

 

 

Is this the way you mean?

0 Likes
Message 6 of 13

ВeekeeCZ
Consultant
Consultant

I meant if you able to do that in autocad successfully. Just using the regular fields...

BTW post the empty drawing with these variables...

0 Likes
Message 7 of 13

Kent1Cooper
Consultant
Consultant

@stevenAZVF8 wrote:

.... but i get: dimension text too long ....


 

Does that mean AutoCAD gives you an error message  saying that the dimension text is too long?  I was able to paste your string in Message 5 into a text override for a Dimension, twice  to make it really over-long, and got no such error.  I'm not aware of [and couldn't find any reference in Help to] any limitation on the length of an override text string in a Dimension.  Or do you mean something else?

Kent Cooper, AIA
0 Likes
Message 8 of 13

cadffm
Consultant
Consultant

@Kent1Cooper

Yes, I tested it and the message appears by that way with the native dimension command for creating dimensions.

 

 

@stevenAZVF8

1. create your dimension object by programming (not by using the native dimension command)
     or
2. create your dimension without TextOverride and edit the TextOverride property value
   QuickTest: (vla-put-TextOverride (vlax-ename->vla-object (entsel)) tekst)

 

 

___

 

 

Befehl:  _dimlinear
Anfangspunkt der ersten Hilfslinie angeben oder <objekt Wählen>:
Anfangspunkt der zweiten Hilfslinie angeben:
Nicht-assoziative Bemaßung erstellt.
Position der Bemaßungslinie angeben oder
[Mtext/Text/Winkel/Horizontal/Vertikal/Drehen]: _m
Maßtext eingeben <49.48>: %<\AcObjProp Object(%<\_ObjId 140699007207952>%).Parameter(10).UserVariable>% %<\AcObjProp Object(%<\_ObjId 140699007150560>%).TextString>% L=<>
Maßtext ist zu lang.

 

 

Sebastian

Message 9 of 13

john.uhden
Mentor
Mentor
Try turning DIMTIX off.

John F. Uhden

0 Likes
Message 10 of 13

cadffm
Consultant
Consultant

As explanation:

(command "CMDECHO" "1" "_.DIMLINEAR" PAUSE PAUSE "_mtext" "Message  9 von 9 john.uhden Advisor john.uhden as answer to: RankstevenAZVF8 29 Minutes ago Re: dimension text too long Try turning DIMTIX off" "Ooops" PAUSE "_.TEXTSCR")

Sebastian

0 Likes
Message 11 of 13

john.uhden
Mentor
Mentor
(command "_.dimwhatever" etc etc) [finish command]
(vlax-put (vlax-ename->vla-object (entlast)) 'textoverride (strcat "<>\\P" snijlfiggle "\\P" trigglegiggle))

John F. Uhden

0 Likes
Message 12 of 13

cadffm
Consultant
Consultant
Accepted solution

Right

 

@cadffm  schrieb:

 

 

@stevenAZVF8

1. create your dimension object by programming (not by using the native dimension command)
     or
2. create your dimension without TextOverride and edit the TextOverride property value
   QuickTest: (vla-put-TextOverride (vlax-ename->vla-object (entsel)) tekst)

 

 

___

 

 

 

 

 


 

Sebastian

0 Likes
Message 13 of 13

stevenAZVF8
Explorer
Explorer

@CADffm

Thanks for the solution.
This works great.

0 Likes