Text snapping when inserted via comamnd

Text snapping when inserted via comamnd

xmark85
Participant Participant
528 Views
5 Replies
Message 1 of 6

Text snapping when inserted via comamnd

xmark85
Participant
Participant

Hi,

 

Basically I am inserting text via command saved in a text file (*.scr). I am calling ACCoreConsole.exe in conjunction with this script to insert the text into my drawing.

 

First, while using AutoCAD 2019LT I had a problem where the text inserted was snapping to nearby objects. I soon realised that Osnap was on, and turning this off resolved this.

 

Then I took my project from work to home, where I have AutoCAD 2021. The snapping problem is back. I have turned Object snap off and snap mode off (F3 and F11 respectively). The coordinates in the text file are correct but they are not when on the final drawing as it is always snapping to the nearest line or object.

 

Any ideas? 

0 Likes
Accepted solutions (1)
529 Views
5 Replies
Replies (5)
Message 2 of 6

pendean
Community Legend
Community Legend
F9 is snap toggle, not F3/F11, unless you changed it and know for a fact it is those and F9 is not active anymore?

HTH

0 Likes
Message 3 of 6

xmark85
Participant
Participant

Sorry yes, F9, not F11.

Both F3 and F9 are both set to off, but inserted text still snaps.

I can manually write the same commands (that are in the script) into the command line in the GUI and the text is inserted perfect - no snapping. But when the same commands are executed via the Windows Command line, the problem occurs.

 

As I say, I solved this in AC 2019 by turning Object snap off (F3). But now using AC 2021 the problem is back, and snapping is definitely off.

0 Likes
Message 4 of 6

Sea-Haven
Mentor
Mentor
Accepted solution

Use Osmode 0 or 16384 rather than your F keys if opening in Acc... it may need the osmode to be set as it may ignore the F3.

0 Likes
Message 5 of 6

xmark85
Participant
Participant

Hi Sea-Haven!

 

Osmode 0 didn't work, but Osmode 16384 did!

I don't quite understand why that worked, but it did and I shall look further into it.

 

Thanks again!

0 Likes
Message 6 of 6

Sea-Haven
Mentor
Mentor

16384 = all off, I use 0 it normally works, I know there is some discussions about which should be used all the time, but in case of accoreconsole it needs the 16384. 

 

SeaHaven_0-1634443344927.png

 

0 Likes