AutoCAD Plant 3D Forum
Welcome to Autodesk’s AutoCAD Plant 3D Forums. Share your knowledge, ask questions, and explore popular AutoCAD Plant 3D topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Need help, how to get space between annotation and line

9 REPLIES 9
SOLVED
Reply
Message 1 of 10
mieCREU6
234 Views, 9 Replies

Need help, how to get space between annotation and line

Hello. im trying to add a pipeline.size tag I can put betweens lines.

But im getting frustrated by the lines, that goes all the way up to text, with no spacing.

mieCREU6_1-1705999530469.png

 

I cannot add space in the block/attributes

mieCREU6_2-1705999876141.png

 

And if try to add a "-", it's offset from center

mieCREU6_3-1706000064987.png

 

Any tips on how to make a small space between the P&ID line and the tag/annotation ?

 

 

 

9 REPLIES 9
Message 2 of 10
h_eger
in reply to: mieCREU6

Dear @mieCREU6 ,

 

https://help.autodesk.com/view/ACD/2024/ENU/?guid=GUID-C16E8C64-1DB8-4706-A44D-3C5E0655540D

-

If my reply was helpful, please give a "Kudo" or click the "Accept as Solution" button below (or both).

Hartmut Eger
Senior Engineer
Anlagenplanung + Elektotechnik
XING | LinkedIn

EESignature



Message 3 of 10
Michiel.Valcke
in reply to: mieCREU6

you can add a textmask or you can make a contour. Except you don't actually need to add any geometry to your contour.

A contour is also used in other annotation styles but it basically means you add a parameter with the same name as your text (so it can determine the length of the text) center it on the 0/0 point and create stretch actions on each side so your contour geometry will move with the length of your annotation. If you use minimalist geometry (in my example i just used 2 vertical lines, but you can use a point or probably even nothing (untested)) you can determine with better accuracy the amount of whitespace you want between your annotation and your line segment.

MichielValcke_0-1706005578334.pngMichielValcke_1-1706005587001.png

 


EDIT: this trick will only work with a pure reference, adding the text DN before the piping.size will stop the geometry from stretching. As a workaround you can create a new calculated property that combines the string 'DN' with the pipesize and then reference that calculated property without having to preface it with another text.

Message 4 of 10
mieCREU6
in reply to: Michiel.Valcke

Im a simpleton on Autocad parameters.
I gave it a try, with stretch action but im not sure if im doing it right.

mieCREU6_0-1706088005244.png

Then I select the two lines as geometry, hit enter.

This is my end result, it is like the distance is not calculated properly.

mieCREU6_1-1706088090890.png

 

Can it be, that im using a attribute definition for #(pipelines.size) and not text ?

mieCREU6_2-1706088165512.png

 

Message 5 of 10
Michiel.Valcke
in reply to: mieCREU6

there should be 2 stretch actions, one for the left grip, one for the right grip. You can also set your parameter to start from the middle, so it will always stretch on both sides equally. The .gif in attachment is an example for the pipeline size

MichielValcke_0-1706103552273.png

the space between the vertical line and the parameter will correspond with the space between your annotation and the vertical line in placement. Not accounting for the annotation scale (which is set in the project setup with edit annotation), also each font has a different 'soft' distance so if you want to be very precise, you have to take into account that that is also a factor in your final distance.

MichielValcke_1-1706103679722.png

MichielValcke_2-1706103844695.png

Lastly, you can look at other annotation styles to figure out how they do it. The Oval Tag Style (Engineering Items) uses the same principle. So we're basically copying that.

MichielValcke_3-1706104039488.png


Through testing I've found the limitations to be that it doesn't work when combining multiple fields or regular text.

 



Message 6 of 10
mieCREU6
in reply to: Michiel.Valcke

Thanks for the GIF, helped me alot 😊 its working now.

 

Now im trying to add the "DN" to pipesize but I have run into troubles again...

 

I have created a property type String with value "DN"

mieCREU6_1-1706188394463.png

 

If I try to use the "Size" properties it throws me a error

mieCREU6_0-1706188351954.png

 

And since "Size" gives me error, I cant use calculated value like, ino_DN_STRING + Size

and if I try "ToString(ino_DN_STRING + Size)" its accepted but its not populated correctly.

 

mieCREU6_2-1706188732369.png

 

Message 7 of 10
mieCREU6
in reply to: mieCREU6
Message 8 of 10
Michiel.Valcke
in reply to: mieCREU6

Yea the Size property is unfortunately bugged for calculated properties - has been for so long that I'm not even sure Autodesk considers it a bug.
You could just edit the tag format if you're not using it for anything else, and use the tag build-up as :

TargetObject.DN (a custom property with the string 'DN' as default value)
TargetObject.Size (the default size property)

Then in the annotation you can use the TargetObject.Tag reference (just as the original PipeLineTag Annotation)

Message 9 of 10
h_eger
in reply to: mieCREU6

This is not an error because the value "Size" comes from a selection list and cannot be used to calculate database fields.

-

If my reply was helpful, please give a "Kudo" or click the "Accept as Solution" button below (or both).

Hartmut Eger
Senior Engineer
Anlagenplanung + Elektotechnik
XING | LinkedIn

EESignature



Message 10 of 10
Michiel.Valcke
in reply to: h_eger

That doesn't seem to be correct since calculated properties do work with other selection lists. Just not with the 'size' one.

The link @mieCREU6 shared earlier, specifically states to create a custom selection list with the same values as the size selection list to circumvent the problem.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Technology Administrators


AutoCAD Beta