tmelancon 发表于 2022-7-5 19:04:57

Another example. With that being said, the user would also have to be able to change angle after selecting points, to illustrate a vertical or horizontal angle.
 
.Again, if this isnt worth the time Lee I completely understand I was just using Cad Tutor as a resource in case some other piping designers out there (that aren't using Autocad Plant 3D) had something in mind.

Lee Mac 发表于 2022-7-5 19:07:36

Looking at your results, you will probably need to reduce the triangle offset specified at the top of the code.
 
I have added a GIF to my earlier post to demonstrate how the program should operate.
 
Lee

tmelancon 发表于 2022-7-5 19:11:13

Lee, what are your credentials you entered at the top, that looks pretty close to what I am wanting.. Outstanding!!

Lee Mac 发表于 2022-7-5 19:14:44

 
I am running the code as posted - you will need to change the offset & scale to suit the size of your drawings (an offset of 10 units will be much too large if your lines are only 1 unit in length).

tmelancon 发表于 2022-7-5 19:16:19

For some reason when I click the second point on the end point of my line is gives me the error "Cannot generate triangle for isometric angle." However, when I click just shy of that end point it generates the triangle? Any ideas as to why?

Lee Mac 发表于 2022-7-5 19:20:54

 
Yes, the triangle cannot be generated for multiples of 30 degrees, as the baseline of the triangle will run along these isometric lines, however, I realise I should remove 60 degrees etc from this restriction.

tmelancon 发表于 2022-7-5 19:21:55

Sounds good I appreciate your efforts tremendously. We never know what angles are CAD technicians are going to draw these angles at. Now what they are supposed to draw them at and what the draw them at is a different story. LOL. See if you can make it to where there are no restrictions. Thanks LEE!!

tmelancon 发表于 2022-7-5 19:25:07

I wonder if you can make a separate code modified to look like the hatching in my post #11, which is what we call a horizontal hatch for 90s that are rolled but are essentially at exact same elevations. I will call the first one ISOV and the horizontal one ISOH.. Thanks for everything LEE!

Lee Mac 发表于 2022-7-5 19:28:22

 
Thank you for your gratitude.
 
 
Though as explained, lifting all restrictions on the angle is not possible as the baseline of the triangle will follow the isometric axis line (at 30 degrees, for example).

tmelancon 发表于 2022-7-5 19:31:54

In your GIF I see you choosing both end points. When I try and replicate that action, I get the error in result. But in your GIF you clearly are able to perform the routine with two end points of the line at that specific angle. Any thoughts?
页: 1 [2]
查看完整版本: 创建等轴测坡度图案填充