Showing results for 
Search instead for 
Did you mean: 
Showing results for 
Search instead for 
Did you mean: 
Developer forum

How show building_material hatch on 'project{2} - cutplane' object

Not applicable
I've tried many times but without solution.
Is possible to show in gdl 2D the building_material hatch, pen .... of own 3D elements?


Yes it is possible but not easy. The only pointers I can give you are:

- If possible create the required plan drawing using 2D tools like POLY2_B in the 2D script
- If you have to use Project2, use the Project2{4} version
- You will need to use REQUEST to extract the fill & pen settings from the used material.
Apple iMac macOS Ventura / AC26UKI (most recent builds)

Also there is a bug in PROJECT2{4} that will prevent you from showing the BMat correctly, you will need to do that by looping through all different used BMats.
Mostly AC 26 on Mac | Author of SelfGDL | Developer of the GDL plugin for Sublime Text |
«Furthermore, I consider that Carth... yearly releases must be destroyed»

I agree with DG,

Don't use project2, it slows the regeneration.
Use the request function to get the material settings.
Then apply them to a poly2_b command.
Creator of Cadswift's parametric GDL libraries
Creator of Infinite Openings and Component Catalogues
Push the envelope & watch it bend

A_ Smith
Kristian wrote:
Don't use project2, it slows the regeneration.

It's true. But sometimes you have a complicated object that's hard/impossible to draw a projection of it with help of poly. Idk if it's a good solution, but in such situations I tend to use project2{4} with parameters resolution=6. Where resolution is a parameters that sets resol in 3D script (for instance it could be 24 - high detalization for 3D).
AC 22, 24 | Win 10

Still looking?

Browse more topics

Back to forum

See latest solutions

Accepted solutions

Start a new discussion!