.NET

.NET

Reply
Active Member
chi_nm
Posts: 6
Registered: ‎05-30-2013
Message 1 of 6 (179 Views)

How to check dashed line when project all edges of faces to a plane.

179 Views, 5 Replies
06-14-2013 02:44 AM

Hi,

 

I have some faces and i want project them to xy plane (Top view).

 

I want to get exterior boundary line of this model. To do this, i will ignore all dashed lines, but i cannot check a line is dashed line or not.

 

Please help me!

ADN Support Specialist
philippe.leefsma
Posts: 662
Registered: ‎06-02-2009
Message 2 of 6 (151 Views)

Re: How to check dashed line when project all edges of faces to a plane.

06-18-2013 06:35 AM in reply to: chi_nm

Hi,

 

It is not clear to me what is it that you call dashed lines? Are those lines the ones that are supposed to be hidden as a result of the projection or are they actually dashed because of their linetype for example?

 

In order to project entities and remove hidden lines, you need to rely on the Hidden Line Removal API: check the ObjectARX %VERSION%\utils\HlrApi sample for more details.

 

Hope it helps.

 

Regards,

Philippe.

 

 

 



Philippe Leefsma
Developer Technical Services
Autodesk Developer Network

Active Member
chi_nm
Posts: 6
Registered: ‎05-30-2013
Message 3 of 6 (133 Views)

Re: How to check dashed line when project all edges of faces to a plane.

06-20-2013 12:23 AM in reply to: philippe.leefsma

Thanks leefsma,

 

i want check a line is hidden line in set of lines (after project them to a plane)

 

you can see attachment image to detail.

 

Thanks

ADN Support Specialist
philippe.leefsma
Posts: 662
Registered: ‎06-02-2009
Message 4 of 6 (123 Views)

Re: How to check dashed line when project all edges of faces to a plane.

06-20-2013 12:59 AM in reply to: chi_nm

You need to use HLR API then.

 

Regards,

Philippe.



Philippe Leefsma
Developer Technical Services
Autodesk Developer Network

Active Member
chi_nm
Posts: 6
Registered: ‎05-30-2013
Message 5 of 6 (119 Views)

Re: How to check dashed line when project all edges of faces to a plane.

06-20-2013 02:01 AM in reply to: philippe.leefsma

Can I use HLR API in .Net?

 

Please give me an example.

 

Thanks

ADN Support Specialist
philippe.leefsma
Posts: 662
Registered: ‎06-02-2009
Message 6 of 6 (114 Views)

Re: How to check dashed line when project all edges of faces to a plane.

06-20-2013 02:13 AM in reply to: chi_nm

Nope, this API is only available in C++ with the sample I mentionned previously. If you want to invoke it from .Net, you would need to write your own mixed-managed wrapper for it.

 

Regards,

Philippe.



Philippe Leefsma
Developer Technical Services
Autodesk Developer Network

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.