Hi Eric
I've been trying without success to write a script to draw an autosize line to use for dimensioning. My RealBasic skills are pretty bad!
What I want to do is draw a line perpendicular to a first line across to a second line, have it put an arrow at each end, work out the line length and insert the line length in the centre of the drawn line like this:
Any hints would be most welcome!
Scripts
-
- Posts: 702
- Joined: Sat Dec 03, 2011 9:19 pm
- Location: Maine USA and Suffolk England
- Contact:
-
- Posts: 1073
- Joined: Sat Dec 03, 2011 12:31 pm
- Location: Tours - France
Re: Scripts
Bonjour George and Happy new year !
Why don't you use the dimension tool?
But you cannot have the text exactly as you want.
Why don't you use the dimension tool?
But you cannot have the text exactly as you want.
Eric Pousse
-
- Posts: 702
- Joined: Sat Dec 03, 2011 9:19 pm
- Location: Maine USA and Suffolk England
- Contact:
Re: Scripts
Happy New Year to you too Eric!
Some of my drawings are necessarily very detailed with lots of dimensions, often at odd angles, so I have to use both inside arrows and outside arrows. There is not usually space for the dimension to be above the dimension line. And I need diameters, radii etc - see extract below which is part of a bigger drawing of mast fittings for a small sailboat design – the drawing is at 1:2 scale which is the largest scale I can use for this drawing and still have the average user print it out. I deliver my drawings as online downloadable, so this drawing will eventually be a PDF. Others, for direct CNC manufacture, get delivered as DXF, and these don't have any dimensions etc.
So I've sort of developed a system over the years that works for me, based on the old clariscad autosize line with arrows both ends. I draw the dashed witness lines where I want them and then use the autosize line to provide the dimension.
I was interested to discover if I could write a script to do the same thing.But I'm not having a lot of success!
If you tell me it is possible given the scripts tools available, I will persevere!
best regards - George
Some of my drawings are necessarily very detailed with lots of dimensions, often at odd angles, so I have to use both inside arrows and outside arrows. There is not usually space for the dimension to be above the dimension line. And I need diameters, radii etc - see extract below which is part of a bigger drawing of mast fittings for a small sailboat design – the drawing is at 1:2 scale which is the largest scale I can use for this drawing and still have the average user print it out. I deliver my drawings as online downloadable, so this drawing will eventually be a PDF. Others, for direct CNC manufacture, get delivered as DXF, and these don't have any dimensions etc.
So I've sort of developed a system over the years that works for me, based on the old clariscad autosize line with arrows both ends. I draw the dashed witness lines where I want them and then use the autosize line to provide the dimension.
I was interested to discover if I could write a script to do the same thing.But I'm not having a lot of success!
If you tell me it is possible given the scripts tools available, I will persevere!
best regards - George
-
- Posts: 1073
- Joined: Sat Dec 03, 2011 12:31 pm
- Location: Tours - France
-
- Posts: 702
- Joined: Sat Dec 03, 2011 9:19 pm
- Location: Maine USA and Suffolk England
- Contact:
Re: Scripts
Hmmm ... possible is good!Eric Pousse wrote:Possible yes
Easy probably not