Jump to content
Developer Wiki and Function Reference Links ×

convert 3d to 2d


Pi_

Recommended Posts

Hi all,

I am working on a 2d/3d PIO (3d path object to create steel profiles)

the 3d part is working good and now I am working on the 2d part.

It would be nice if I could just convert the 3d object to 2d and controle the visible and invisble line styles. I know I can draw everything in 3d but it is very hard to draw chamfered endings (see pictures) or profiles that are rotated around there axis.

I can not work with a 3d top view because I can't controle the invisible line styles...

Link to comment

I'm trying to convert geometry in my PIO from 3d to 2d by

DoMenuTextByName('Convert to Lines',0);

but that doesn' work, probably because the geometry is made after the script has run. Is there a work around?

this is a script from another blog that works (but it is in a script, not in a PIO)

Procedure Test;

BEGIN

BeginGroup;

NameClass('klasse');

beginxtrd(0,1000);

CallTool(-204);

endxtrd;

DoMenuTextByName('Convert to Lines',0);

EndGroup;

END;

Run(Test);

Link to comment

look wath I found!

FUNCTION GetObjectHiddenLine(

hGeometry3D :HANDLE;

cuttingHeight :REAL;

bottomOfCutPlane :BOOLEAN) : HANDLE;

I'm not completly sure what the parameters are. It seems that it gives the visible line of the cut away geometry. But then the name of the function doesn't make a lot of sense... I contacted tech support, hope to get answer soon...

So I was able to create visible lines. Also to create cut away, but so far no luck with the hidden lines...

Link to comment
  • 4 weeks later...
  • 3 weeks later...
  • 1 month later...

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...