Design forum
cancel
Showing results for 
Search instead for 
Did you mean: 

Script 2D: visualize custom parameter

mest79
Newcomer
Hi,
I created an object with a custom text parameter "name_family" that indicates the category of the object (external, internal, etc.).
Can I view the text of this parameter in 2D?

For example, for the height of my object, in the 2D script I have this command

IF GLOB_SCALE = 51 THEN
text2 0.35, 0.17, STR("%0.2m", SYMB_POS_Z)
ENDIF

Thanks!
Architect
AC22 (3006) - i7-6820HQ, 16Gb, AMD FirePRO W5130, WIN10
1 ACCEPTED SOLUTION

Solution
Lingwisyer
Virtuoso
You should just be able to replace your string variable with your parameter name. Depending on the text, you might need to first assign it to a Textblock then assign that to the Text2.

If _return = 1 then
		SET STYLE Standard

		rot2 90
		add2 0, ProWidth / 2
		t = (hLength - hLength2) / 2
		text2 t, 0, ProLengthT
		DEL 2		
endIF

That is a segment in one of my objects to display the parameter "ProLengthT" centred on the object.



Ling.
AC18-23 AUS 7000
Self-taught, bend it till it breaks.
Win10 | E5620 x 2 | 24GB | K2200

Win10 | R5 2600 | 16GB | GTX1660

View solution in original post

2 REPLIES 2

Solution
Lingwisyer
Virtuoso
You should just be able to replace your string variable with your parameter name. Depending on the text, you might need to first assign it to a Textblock then assign that to the Text2.

If _return = 1 then
		SET STYLE Standard

		rot2 90
		add2 0, ProWidth / 2
		t = (hLength - hLength2) / 2
		text2 t, 0, ProLengthT
		DEL 2		
endIF

That is a segment in one of my objects to display the parameter "ProLengthT" centred on the object.



Ling.
AC18-23 AUS 7000
Self-taught, bend it till it breaks.
Win10 | E5620 x 2 | 24GB | K2200

Win10 | R5 2600 | 16GB | GTX1660

View solution in original post

mest79
Newcomer
Thanks!
Architect
AC22 (3006) - i7-6820HQ, 16Gb, AMD FirePRO W5130, WIN10

Didn't find the answer? Start a new discussion

Labels

Still looking?

Browse more topics

Back to forum

See latest solutions

Accepted solutions

Start a new discussion!