Scripts

2D CAD software for Windows, Mac OS X and Linux
Post Reply
debenriver
Posts: 696
Joined: Sat Dec 03, 2011 9:19 pm
Location: Maine USA and Suffolk England
Contact:

Scripts

Post by debenriver »

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:

Image

Any hints would be most welcome!
Eric Pousse
Posts: 1064
Joined: Sat Dec 03, 2011 12:31 pm
Location: Tours - France

Re: Scripts

Post by Eric Pousse »

Bonjour George and Happy new year !

Why don't you use the dimension tool?
But you cannot have the text exactly as you want.
Eric Pousse
debenriver
Posts: 696
Joined: Sat Dec 03, 2011 9:19 pm
Location: Maine USA and Suffolk England
Contact:

Re: Scripts

Post by debenriver »

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!

Image

If you tell me it is possible given the scripts tools available, I will persevere!

best regards - George
Eric Pousse
Posts: 1064
Joined: Sat Dec 03, 2011 12:31 pm
Location: Tours - France

Re: Scripts

Post by Eric Pousse »

Possible yes
Easy probably not
Eric Pousse
debenriver
Posts: 696
Joined: Sat Dec 03, 2011 9:19 pm
Location: Maine USA and Suffolk England
Contact:

Re: Scripts

Post by debenriver »

Eric Pousse wrote:Possible yes
Easy probably not
Hmmm ... possible is good!
Post Reply