Lucacr88
Guest
hi to everyone, I've been banging my head for a few days to create complex scripts to create autocad designs, it's an endless command managed by excel.
I have created my beautiful excel sheet that following logic of design of the component automatically calculates everything I want, with trigonometry and functions I go strong so I can establish to the great every coordination without problems.... and now I would like to exploit everything to create the design in autocad with two clicks!
I am not a great encoding expert with scripts but I learned the basics and I have already made good steps forward!
My biggest problem for the moment is the impossibility of creating through bevel scripts and/or strings of circumference as well as cutting curves segments and so on.. .
I tried to solve the problem by creating circles and then cutting the parts that I don't want and getting the desired connection, but the size command doesn't always work at 100% and depends on the decimal figures of the coordinates that calculation. . .
I also tried to use the arc command, always knowing and cmq calculate at least 3 points of the same I thought it would work smoothly and instead it always freezes!
I follow the command, accepts the first point.... and then you plant there, does not accept the second point and the dialog box says that you need coordinates 2d.... I have tried all, coordinates of whole or decimal numbers, I have tried not to specify the coordinate z=0, to make him change the reference between (first, second, end) (first, center, second) etc etc etc. but nothing to do
It is not a problem of zoom or encoding controls, I would say more than anything I can simulate the pick well and that I miss something else
Can any of you help me solve the problem?
I make a trivial example if someone wanted to answer me with a practical example:
I have two lines:
2,0,0 10,0
0.2,0 0.10,0
(so two long lines 8 perpendicular to each other)
by calculations I easily know the coordinates of 3 points that belong to the arc:
0.2
2,0
0.586,0.586
and in case it also serves the coordinates of the center:
2,2
Would you write me the script that can create this design?
I use autocad 2013!
I have created my beautiful excel sheet that following logic of design of the component automatically calculates everything I want, with trigonometry and functions I go strong so I can establish to the great every coordination without problems.... and now I would like to exploit everything to create the design in autocad with two clicks!
I am not a great encoding expert with scripts but I learned the basics and I have already made good steps forward!
My biggest problem for the moment is the impossibility of creating through bevel scripts and/or strings of circumference as well as cutting curves segments and so on.. .
I tried to solve the problem by creating circles and then cutting the parts that I don't want and getting the desired connection, but the size command doesn't always work at 100% and depends on the decimal figures of the coordinates that calculation. . .
I also tried to use the arc command, always knowing and cmq calculate at least 3 points of the same I thought it would work smoothly and instead it always freezes!
I follow the command, accepts the first point.... and then you plant there, does not accept the second point and the dialog box says that you need coordinates 2d.... I have tried all, coordinates of whole or decimal numbers, I have tried not to specify the coordinate z=0, to make him change the reference between (first, second, end) (first, center, second) etc etc etc. but nothing to do

It is not a problem of zoom or encoding controls, I would say more than anything I can simulate the pick well and that I miss something else

Can any of you help me solve the problem?
I make a trivial example if someone wanted to answer me with a practical example:
I have two lines:
2,0,0 10,0
0.2,0 0.10,0
(so two long lines 8 perpendicular to each other)
by calculations I easily know the coordinates of 3 points that belong to the arc:
0.2
2,0
0.586,0.586
and in case it also serves the coordinates of the center:
2,2
Would you write me the script that can create this design?
I use autocad 2013!