Message 1 of 3
sendcommand string problem
Not applicable
05-24-2000
09:45 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi all,
I'm using the sendcommand to run the pedit from the command line. It looks
like it will work except I have one problem. I am selecting the object by
specifying a point. I have the x,y coordinates of the first point of the
polyline I want selected as a string in the form:
mypoint = "15,10"
so when I do my sendcommand I send:
ThisDrawing.SendCommand "_pedit" & vbCr & mypoint & vbCr & "j" & vbCr &
"all" & vbCr & vbCr
I think this should work but what happens is this:
________________________________________________________________
Command: _pedit
Select polyline: Select polyline: 492729.63,
*Invalid selection*
Expects a point or Window/Last/Crossing/BOX/ALL/Fence/WPolygon/CPolygon
Select polyline: 5518783.13
Select polyline: j
*Invalid selection*
Expects a point or Window/Last/Crossing/BOX/ALL/Fence/WPolygon/CPolygon
Select polyline: all
Enter an option [Open/Join/Width/Edit vertex/Fit/Spline/Decurve/Ltype
gen/Undo]:
________________________________________________________________
Somehow a carriage return is executed when the comma between the x and y
coordinate is encountered.
Does anyone know why this is happening?
TIA
--
Scott Nelson
Technical Director
Scenery Plastics Inc.
www.sceneryplastics.com
I'm using the sendcommand to run the pedit from the command line. It looks
like it will work except I have one problem. I am selecting the object by
specifying a point. I have the x,y coordinates of the first point of the
polyline I want selected as a string in the form:
mypoint = "15,10"
so when I do my sendcommand I send:
ThisDrawing.SendCommand "_pedit" & vbCr & mypoint & vbCr & "j" & vbCr &
"all" & vbCr & vbCr
I think this should work but what happens is this:
________________________________________________________________
Command: _pedit
Select polyline: Select polyline: 492729.63,
*Invalid selection*
Expects a point or Window/Last/Crossing/BOX/ALL/Fence/WPolygon/CPolygon
Select polyline: 5518783.13
Select polyline: j
*Invalid selection*
Expects a point or Window/Last/Crossing/BOX/ALL/Fence/WPolygon/CPolygon
Select polyline: all
Enter an option [Open/Join/Width/Edit vertex/Fit/Spline/Decurve/Ltype
gen/Undo]:
________________________________________________________________
Somehow a carriage return is executed when the comma between the x and y
coordinate is encountered.
Does anyone know why this is happening?
TIA
--
Scott Nelson
Technical Director
Scenery Plastics Inc.
www.sceneryplastics.com