Jump to content

Strange Text Placement behaviour


Andrew1979

Recommended Posts

I am trying to place text in a certain position in paper space. I have all the co-ordinates correct but each time I run the command the text could end up anywhere around the point it should be at.

 

Here is a portion on the code:

 

(cond
      ((= myItem2 "A")(setq Pos1 "351.3,280.2")(setq Pos2 "355.9,280.2")(setq Pos3 "391.1,280.2")(setq Pos4 "400.0,280.2") (setq RevChar "A"))
)
;there are more conds I just eliminated showing them all

(if
(= TogRevDate "1")
(progn
   (command "text" "j" "tl" Pos1 "0" myItem2 );Revision REV
 )
)
; there are more if statements I just showed one for simplicity

This is all attached to a DCL file which runs correctly. I just don't undestand this random placement

Link to comment
Share on other sites

Well U can try a couple of things , just some 'field' tips. Instead of using text for your points , use (list 351.3 280.2). Check your osnap setting (turn it off). Check if your text style has a fixed height. But most important : where in your text command do you specify your text height (unless your text style has a fixed height ofcourse...)

 

 

gr. Rlx

Link to comment
Share on other sites

Thanks for the feedback.....as soon as you mentioned osnap I was sure it was the culprit.....and it was. Thanks so much for your feedback, program works perfectly now

Link to comment
Share on other sites

You're welcome

 

 

I've had the same experiences in the past so I too learned the hard way ;-)

 

 

Gr. Rlx

 

 

oh wow , I just see I went from a full member to a senile member , oh excuse me , Senior member :-)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...