.NET

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

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

177 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: 658
Registered: ‎06-02-2009
Message 2 of 6 (149 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 (131 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: 658
Registered: ‎06-02-2009
Message 4 of 6 (121 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 (117 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: 658
Registered: ‎06-02-2009
Message 6 of 6 (112 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
Are You Going To Be @ AU 2014? Feel free to drop by our AU topic post and share your plans, plug a class that you're teaching, or simply check out who else from the community might be in attendance. Ohh and don't forgot to stop by the Autodesk Help | Learn | Collaborate booths in the Exhibit Hall and meet our community team if you get a chance!