Jump to content
imax8v

Drawing Dimensions With Script

Recommended Posts

imax8v

Hi everyone

i wrote a script to draw 2 pLine and put dimension over them but i have problem with dim line offset.

i dont understand effect of value given by command after picking start/end ponits of dimension.

i've tried -1 or 0.5, but every time i load script place of dimension line is vary.

my script is attached.

thx for your help :smileywink:

orthomode
0
osmode
0
pline
0,-1
w
0.03
0.03
6.894,-2.216

pline
6.894,-2.216
w
0.11
0.11
12.803,-3.257

_dimaligned
0,-1
6.894,-2.216
-0.2
(command)
(command)
_dimcontinue
12.803,-3.257
(command)
(command)
_dimaligned
0,-1
12.803,-3.257
-0.5
(command)
(command)

Share this post


Link to post
Share on other sites
MSasu

That query is for location of dimension line - by inputting a number, that means a displacement in the current direction of cursor, which may vary from a call to another.

Please try to input a point instead.

...
_dimaligned
0,-1
6.894,-2.216
[color=red][s]-0.2[/s]
[/color]3.621, -0.623
...

Share this post


Link to post
Share on other sites
imax8v

thx dear MSasu :roll:

that'll fix my problem, so i should rewrite my script :D

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×