Jump to content
Developer Wiki and Function Reference Links ×

add geometry to extrusion


Pi_

Recommended Posts

Hi,

I want to add geometry to an extrusion created inside a polyline-PIO.

The geometry I want to add is read from a symbol. (I want to create custom section beams/columns)

here is part of the code, the problem is that the geomtry is copied in the 3d-part of the symbol, instead of being copied in to the extrusion, even if I use 'setparent', anybody any suggestions?:

if Pdoorsnede='symbool' then polyh:=HDuplicate(FInSymDef(GetObject(Psymbool)),0,0);

extrudeh:=ExtrudeAlongPath(ash,polyh);

if Pdoorsnede='symbool' then begin

polyh:=FInSymDef(GetObject(Psymbool));

while polyh<> NIL do begin

polyh:=NextObj(polyh);

{ h:=HDuplicate(polyh,0,0); }

h:=CreateDuplicateObject(polyh, extrudeh);

ok:=SetParent(h, extrudeh);

end;

end;

Link to comment

Maybe you are trying to create an extrude based on the symbol ?

In that case you need to create one surface / nurbs curve based on the geometry of that symbol and use that as profile when creating the extrude.

You can't change it afterwards.

The SetParent function can be used on layers, groups etc only for container based purposes.

The ExtrudeAlongPath command you use doesn't create one extrudeobject but a combination of multiple surfaces that form the extrude. Its not an active object you can edit later on

Edited by hippothamus
Link to comment

thanks,

I did it this way:

polyh:=FInSymDef(GetObject(Psymbool));

begingroup;

while polyh<> NIL do begin

h:= CreateDuplicateObject(polyh,nil);

polyh:=NextObj(polyh);

end;

endgroup;

extrudeh:=CreateCustomObjectPath('Extrude Along Path', ash, LNewObj);

next problem,

polyh2:=GetObjectHiddenLine(extrudeh,10000, True);

doesn't work on 'Extrude Along Path' (it does work on 'ExtrudeAlongPath'

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...