Jump to content
Mr. Bram1 Kerkhofs1

2d drawing of brep

Recommended Posts

Hi

 

I was busy with checking if I could make a technical drawing from a brep.

In attachment I put a shape, and I would like to make a drawing out of it.

 

I tried to experiment with the 2D window a bit, and also with the FGIGeometry's that you get, but for now I can only make a drawing from a line, not from a surface or a brep.

 

Anybody an idea?

 

Thanks

 

Bram

2dWindow.fdbc

post-555-0-89189300-1518382056_thumb.png

Share this post


Link to post
Share on other sites

Hi Bram,

 

Yes you are right - the 2D-drawing functionality covers only curves, and sections (e.g. from a section group that are generated on surfaces and breps). For breps itself, we have not implemented it yet. This is a TODO on our list. 

 

Here is a possible solution:

 

Some users write their own feature definitions in CAESES to visualize 2D-data in the 3D-window - and then export it to have some sort of custom 2D-drawing. For breps, you can loop the edges (command: brep.getEdge(...)) and use "dimension lines" (menu > visualization > linear dimension) to set up a 2D drawing. This is a bit of manual work (typing the stuff in a feature) but on the other hand it allows you to customize it fully to your needs.

 

Sorry for not having a faster solution available at the moment,

Joerg

Share this post


Link to post
Share on other sites

Hi Joerg

 

No problem,Thanks for the tip!

 

If I can make the drawing to scale, that would be already good :).

I put a working case in the attachment.

It basically gets all the lines from a brep and puts them in FGIGeometries and loads them into the screen.

 

Note: The input breps must be in between square brackets (as an objectlist)

 

Cheers

Bram

2dWindow.fdbc

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...