Jump to content

Drawing no of fixed width rectangle between two selected points


Halsy

Recommended Posts

i have to draw fixed width rectangle which is 600,500,450,400,360,350,320,300,280,275,270,260,250,230,225,220,210,200,195,190,185,180,175,170,165,155,150,145,140,135,130,125,120,115,110,105,100 and between two selected point whether on  axis or y axis 

Link to comment
Share on other sites

if i select 2 point which is shown in image then rectangle of fixed with which is emption early has to come and after selection user has to give height of that rectangle

which is on both x axis and y axis

GAnesh.png

Link to comment
Share on other sites

21 hours ago, Halsy said:

我必须画出固定宽度的矩形,这是600,500,450,400,360,350,320,300,280,275,270,260,250,230,225,220,210,200,195,190,185,180,175,170,165,155,150,145,140,135,130,125,120,115,110,105,100,在两个选定的点之间,无论是在轴上还是y轴上。

Please provide test DWG

  • Agree 1
Link to comment
Share on other sites

if i select 2 point which is shown in image then rectangle of fixed with which is emption early has to come and after selection user has to give height of that rectangle

which is on both x axis and y axis

Link to comment
Share on other sites

Sad to say , ACAD can not edit a image. Please up load your DWG -

 

Other fact what could be the distance from point-1 to point-2? 

 

How it will be discriminated or decided which measure to take 

 

The horizontal have 3 x 600 + 1 x 500 + 1x 170 . 

Or could it be 2 x 600 + 2 x 300 + 1x250+  +1x120+ 1x130+ 1 x 170 

Please set up the formation rule. 

 

 

 

 

Link to comment
Share on other sites

This has been discused in great length over at forums/autodesk and I think is posted here now as there ws not a final solution provided.

 

The issue with the solution was the random way a final panel is chosen it was like I want an answer from the 5 different combinations that I could use but the code has to pick the correct one which seems totally random.

 

Again look at  this before replying https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/divding-two-points-into-specifi-width-and-height-of-rectangle/td-p/10533944/page/2 its up to 24 replys.

Link to comment
Share on other sites

if i select 1st point and 2nd point on screen then user has to give a height of that rectangle then rectangle of width 600 ,500,450,400,360,350,320,300,280,275,270,260,250,230,220,210,200,195,190,185,180,175,,170,165,160,155,150,145,140,135,130,125,120,115,110,105,100 has to come where maximum number of rectangle of width 600 has to come then rest of above list

Drawing1.dwg

Link to comment
Share on other sites

Devitg "Please set up the formation rule." Did you read all the comments at forums/autodesk to random an answer to code.

Edited by BIGAL
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...