Message 1 of 5
Sendcommand

Not applicable
05-25-2001
03:41 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I got the following error message while using SENDCOMMAND to change the UCS in the program.
SOURCE CODE :
Dim objline As AcadLine
dim x as variant
ThisDrawing.Utility.GetEntity objline, x, "Select the cs line"
ThisDrawing.SendCommand "ucs" & vbCr & "n" & vbCr & "OB" & vbCr & objline.ObjectID & vbCr
ERROR MESSAGE:
Command: Select the cs line 'HERE I SELECTED THE LINE.
Command: ucs
Current ucs name: *WORLD*
Enter an option [New/Move/orthoGraphic/Prev/Restore/Save/Del/Apply/?/World]
: n
Specify origin of new UCS or [ZAxis/3point/OBject/Face/View/X/Y/Z] <0,0,0>: OB
Select object to align UCS: 25595312
No object found
When i tried the same in Command prompt, it is working fine.
Any help in this regard will be very useful.
Regards
Anand singh
I got the following error message while using SENDCOMMAND to change the UCS in the program.
SOURCE CODE :
Dim objline As AcadLine
dim x as variant
ThisDrawing.Utility.GetEntity objline, x, "Select the cs line"
ThisDrawing.SendCommand "ucs" & vbCr & "n" & vbCr & "OB" & vbCr & objline.ObjectID & vbCr
ERROR MESSAGE:
Command: Select the cs line 'HERE I SELECTED THE LINE.
Command: ucs
Current ucs name: *WORLD*
Enter an option [New/Move/orthoGraphic/Prev/Restore/Save/Del/Apply/?/World]
Specify origin of new UCS or [ZAxis/3point/OBject/Face/View/X/Y/Z] <0,0,0>: OB
Select object to align UCS: 25595312
No object found
When i tried the same in Command prompt, it is working fine.
Any help in this regard will be very useful.
Regards
Anand singh