Dear Sir,
I want to rectangle inner all attributes circle to attributes circle dimension automatic.
Please help me.
Solved! Go to Solution.
Solved by Moshe-A. Go to Solution.
Solved by Gaganpatel. Go to Solution.
Solved by Moshe-A. Go to Solution.
Solved by Moshe-A. Go to Solution.
Solved by Moshe-A. Go to Solution.
@Gaganpatel hi,
your request may look very simple to accomplish but it's totally beyond that but i managed to get over all the difficulties and i hope this will be your answer.
attached fdall.zip file contain fdall.vlx lisp file to be load in autocad.
cause you did not provide any explanation on what your are doing so i called the rectangle lines "Feature" and the lisp is Feature Dimension All.
it's important that you read this all so you will understand under what terms it works:
limitation:
the feature (the lines) must form a straight rectangle and must be aligned to wcs
dimension style:
the fdall.vlx uses the current dimstyle. if the dimstyle is not well defined, you will get ugly result.
running lisp:
after loading it, you will be prompt to select objects: select the feature (4 lines) and all the circle blocks in one shot.
program process:
it start by checking what was selected e.g 4 lines that must form a straight rectangle and if it's not, you will be notify.
if some other thing went wrong or missing (like the circle blocks) you will be notify. the circle blocks must lay totally inside the feature otherwise they will be ignored.
if your selection was positive, you will get the dimensions. the horizontal dimension starts from the lower left corner of the feature and to the right and the vertical dimension starts at the same point and up (exactly the same as seen in your sample drawing)
the program brings in consideration that the feature is not accurately drawn plus the position of the circle blocks may not be exactly on XY coordinates so a small tolerance (it's call fuzz) is allowed and it for start set to 1 drawing unit. this means if a feature has up to 1 unit digression, it will still be considered a straight rectangle so as if 2 circle blocks on X (or Y) axis has up to 1 unit digression, they will be considered on the same line.
the vertical dimension line relatively spaced to the left 6 * dimscale factor and the horizontal dimension relatively spaced below 6 * 1.35 * dimscale factor. the tolerance and the spaced (6) factor are hard coded and if you want to change them you will ask me. also the 'circle' block name you may want in future to use another name. maybe in future i will open all that for you
enjoy
moshe
it's important that you read all the instruction - did you? what did you not understand?
do you know how to load and run lisp?
MR @Gaganpatel
you did not read all my instructions, in order this to work the program need to known (in advance) what is the name of the block (circles) you are using otherwise it will catch any block inside the feature (rectangle) and you do not want that - yes?
attached is and update, now the block does not must to be an attribute.
rename the block name to circle and it will work.
moshe
here is an update, it includes another command call FDSET which let you specifies these settings:
command: FDSET
[Block name/Tolerance/Dim space]:
for explanations about these setting read in my first post.
enjoy
moshe
Dear Sir,
Thanks sir,
This program is good working auto cad 2018.
But i want to auto cad lower version use.
Please share this program lisp file.
if you liked my solution then please mark this as your solution
specify the lower version
Dear Sir,
Please modify the programs as per example drawing.
Attributes circle to circle.
Attributes circle to circle.
i'm sorry but i do not understand what that means?
i have test FDALL on your new example.dwg and it works like a charm i use FDSET to specify the block name (hope you are using it too) the only thing that needed fix is the dimension style...i set the overall dimscale to 10.0 and i got reasonable result.
moshe
Dear Sir,
This program is working good but i want to ordinate dimension on this program.
Please find the attached example drawing.
Please help me.
here is the new version
again note, your dimension style is not set properly. FDSET continue to control settings.
enjoy
moshe
Can't find what you're looking for? Ask the community or share your knowledge.