ObjectARX

Reply
Distinguished Contributor
421232206
Posts: 159
Registered: ‎10-21-2010
Message 1 of 4 (127 Views)

hatch created by code is not easy to set its scale

127 Views, 3 Replies
09-04-2013 02:53 AM

    I need to create hatch by code , but it seems that it is not easy to set its scale.  for example, if the area of the hatch is very large, and the scale is set to 0.01,  then Autocad may fail at this point. Or, if the area is very small, and the scale is set to 1, then after creating the hatch, you can never find the hatch in the viewport, but the hatch is indeed created.

   so  I wonder if there is a way to set the scale according the area of the hatch?

Technology change world! Coding change technology! We coders are coding!
Distinguished Mentor
owenwengerd
Posts: 593
Registered: ‎08-06-2002
Message 2 of 4 (120 Views)

Re: hatch created by code is not easy to set its scale

09-04-2013 07:01 AM in reply to: 421232206

It sounds like you already know how to set the hatch scale. Are you looking for an algorithm to calculate a hatch scale? Please clarify.

--
Owen Wengerd
ManuSoft
Distinguished Contributor
421232206
Posts: 159
Registered: ‎10-21-2010
Message 3 of 4 (107 Views)

Re: hatch created by code is not easy to set its scale

09-04-2013 05:48 PM in reply to: owenwengerd

yes,  I know how to set the scale of a hatch by code.   My problem is how to set a suitable scale to a hatch. because too large or too small , not good. too small, the hatch looks too dense. too large, you can never see find the hatch.  So, is there a method to give a suitable scale according the area,width, or height of a hatch?

Technology change world! Coding change technology! We coders are coding!
Distinguished Mentor
owenwengerd
Posts: 593
Registered: ‎08-06-2002
Message 4 of 4 (102 Views)

Re: hatch created by code is not easy to set its scale

09-04-2013 07:07 PM in reply to: 421232206

I think you will have to invent an algorithm for that.

--
Owen Wengerd
ManuSoft

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community