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

2024 Technology Preview Program:
Master powerful new features and shape the latest BIM-enabled innovations

Libraries & objects
About Archicad and BIMcloud libraries, their management and migration, objects and other library parts, etc.

can not stretch object in 3d

Anonymous
Not applicable
I made a simple post script where it can stretch in 3d, works great.

		cprism_ mat_, mat_, mat_,
					 5, zzyzx,
				0'-0.0000", 0'-0.0000",     15,
				depth, 0'-0.0000",     15,
				depth, b,     15,
				0'-0.0000", b,     15,
				0'-0.0000", 0'-0.0000",     -1
I made a new object for a beam, I used the same script but added a rotate command

rotx 90

		cprism_ mat_, mat_, mat_,
					 5, zzyzx,
				0'-0.0000", 0'-0.0000",     15,
				depth, 0'-0.0000",     15,
				depth, b,     15,
				0'-0.0000", b,     15,
				0'-0.0000", 0'-0.0000",     -1



now in 3d my hotspots are all messed up and it does not stretch. I have been working on this going back and forth for hours. What am I doing wrong?

Any help will be greatly appreciated.
Thanks
8 REPLIES 8
Dave Seabury
Advocate
Where did you place the rotate command?

Make sure the ROT occurs be for the hotsposts

David
AC 19-24 Windows 10 64 bit, Dell Prercision 7820, Xeon Silver 2414R ( 12 Cores), 64 GB Ram, Quadro RTX 4000 8GB
Anonymous
Not applicable
For my post I placed my hotspots at the end of the script. When I copied the script for my beam I have not added any hotspots yet but is automatically adds hotspots on the ends. If I do not rotate the cprism then I have a hotspot top and bottom, when I rotate the prism the hotspot stays at the top as if I did not rotate the hotspot but I do not have any hotspots in my script yet.
Dave Seabury
Advocate
camp

I copied your first script and then rotated it 90 degrees as
I believe you did. The reason that it won't stretch the way
you think it will is because the "hotspots" that you see in the
3d window are base on A and B and are not rotated. it would
be easier to just script a beam, but if you want to rotate the
object and keep it strechy, you will need to script in moveable
hotspots.

David
AC 19-24 Windows 10 64 bit, Dell Prercision 7820, Xeon Silver 2414R ( 12 Cores), 64 GB Ram, Quadro RTX 4000 8GB
Dave Seabury
Advocate
camp,

Sorry, not A and B but rather the origin of your object (0.0,0.0)
and ZZYZX. Even though your object is rotated, the two "hotspots"
you are seeing in the 3d window are the values for 0,0 and zzyzx.
AC 19-24 Windows 10 64 bit, Dell Prercision 7820, Xeon Silver 2414R ( 12 Cores), 64 GB Ram, Quadro RTX 4000 8GB
Anonymous
Not applicable
ok I changed it to a beam but I still can not stretch it in 3d. I must be totally missing something. I usually can struggle through the code and get it to work but this is got me. this is what I have. Just a simple project2 in 2d.

		beam mat_, mat_, mat_, mat_, mat_,
					 depth,
				0,b,b,0,
				0,0,a,a,.5,
				15,15,15,15
				


!bottom
HOTSPOT 0,0,0,unID=unID+1
HOTSPOT 0,a,0,unID=unID+1
HOTSPOT b,a,0,unID=unID+1
HOTSPOT b,0,0,unID=unID+1

!top
HOTSPOT 0,0,depth,unID=unID+1
HOTSPOT 0,a,depth,unID=unID+1
HOTSPOT b,a,depth,unID=unID+1
HOTSPOT b,0,depth,unID=unID+1
What am I missing here?I just want this beam to stretch in the length direction. the width and depth will be fixed.

I am not sure what the .5 is at the end of the script, my book references it to a t value but I do not know what that does.

Please help if I have not confused you too much.

Thanks.
John
Dave Seabury
Advocate
John,

Attached is a script for an LVL beam with moveable hotspots for length.
Open it up and take a look. I tend to script everything on the XY plane
and then rotate it up 90 degrees. That's why you will see ROT commands
in the script.
AC 19-24 Windows 10 64 bit, Dell Prercision 7820, Xeon Silver 2414R ( 12 Cores), 64 GB Ram, Quadro RTX 4000 8GB
Anonymous
Not applicable
Dave wrote:
John,

Attached is a script for an LVL beam with moveable hotspots for length.
Open it up and take a look. I tend to script everything on the XY plane
and then rotate it up 90 degrees. That's why you will see ROT commands
in the script.

This would be great, do you mind saving this object as an AC12 object. This is why I needed to add what version of archicad I have. I think I have done this now in my profile, well see. I know this is a simple object I am trying make, I just do not understand what I am doing wrong.

Thanks again
Erich
Contributor
Take a look at my blog - click the link in my signature or here

There you will find an entry discussing stretchy hotspots and how to script them. Good for your project or many others.
Erich

AC 19 6006 & AC 20
Mac OS 10.11.5
15" Retina MacBook Pro 2.6
27" iMac Retina 5K