help, needed uc or mdl

Status
Not open for further replies.

José Martínez Rubio

Usenet Archive
Joined
Nov 29, 2000
Messages
19
Reaction score
0
I have this problem. I'm working with a steroplotter that is linked to Microstation V5 (yes!) by a mdl created by Leica Mi drawings mainly consist on 3d lstrings representing stones on walls, and are drawn with "place lstring space" command because if "place shape" were used, my stones wolud be planar (almost never seen). The problem is that when I'm closing the shape I cannot tentative the first data point until the command is finished so I have to reset before closing and then use a short segment to close the gap snaping both ends.

Seems to be stupid? yes. But imagine how many stones there are in a gothic cathedral then multiply this amount by the number of facets of each one of those stones and the resulting by five extra clicks. Smart lines would help... but V5 doesn't have smartlines. The mdl interface updated by lh-systems (leica) for ms95(MsDOS) costs "only" 4400 $ We are a university and our academic licenses of a whole program by Bentley called Microstation costed 85$ do U understand? So my need is a mdl or uc that helped me to close a current spatial lstring by pressing a key, or by a command like "cl" Any help would be appreciated...
 
[...snip...]
The problem is that when I'm closing the shape I cannot tentative the first data point until the command is finished so I have to reset before closing and then use a short segment to close the gap snaping both ends.
[...snip...]

Have you tried just clicking on the starting point to close the shape? It has been a while but it seems to me that in V5 that would seek a precise closure.
 
Have you tried running it with MS95 (DOS)? Some MDL's ran unmodified from v.5 to 95. Then you could wrap a macro around your tool, recalling the initial point. It should also be possible to write a usercommand to loop until you type "cl" and then re-issue a datapoint at the first coordinate, followed by a reset. Like this:

;------------------------------------------------------------------------------ ; 3DLS.UCM ;------------------------------------------------------------------------------ ; DESCRIPTION: This 3-D User Command is designed to simplify adding ; 3-D linestrings to design files during digitizing. ; Any keyin will close the linestring on itself ;------------------------------------------------------------------------------ ; BY: CHUCK RHEAULT, Greenman-Pedersen, Inc. Laurel, Md. 301-47--2772 ;------------------------------------------------------------------------------ ; VARIABLES: R0 - OUTFLG ; A2 - Beginning point X ; A3 - Beginning point Y ; A4 - Beginning point Z ; C0 - Beginning point as keyin XY=... ; C2 - Beginning point X as working units string ; C3 - Beginning point Y as working units string ; C4 - Beginning point Z as working units string ;------------------------------------------------------------------------------ ; CALLS: None ; ; CALLED BY: NONE ;------------------------------------------------------------------------------ TST NDICES NE 3 TWOD ; 3-D Files Only SET CONTRL = CONTRL !256 ; Disable messages SET R0 = OUTFLG ; Save OUTFLG settings SET OUTFLG = OUTFLG !8 ; Set to Allow Menu Pick ;------ Main Routine
START:
CMD PSPLST ; Place Space Line String
NEWLSS:
MSG 'PRIdentify Point (Enter CL to close)'
MSG 'CFPlace Lstring Space'
GET P,PNT1,K,CLOSE,M,EXITUC
PNT2:
GET K,CLOSE,P,SLI,R,SLI,M,EXITUC
INVINP:
MSG 'PRinvalid input - reset to continue'
GET
GO PNT2
SLI:
SLI
GO PNT2
PNT1:
SET A2 = XUR - GOXUOR
SET A3 = YUR - GOYUOR
SET A4 = ZUR - GOZUOR
CVT C2 = A2
SET C0 = C2 + ','
CVT C3 = A3
SET C0 = C0 + C3
SET C0 = C0 + ','
CVT C4 = A4
SET C0 = C0 + C4
SET C0 = 'XY=' + C0
KEY C0
GO PNT2
CLOSE:
KEY C0
KEY 'reset'
GO NEWLSS
TWOD:
MSG 'ER3-D tool in a 2-D file - reset to EXIT'
GET
GO EXITUC
;------ Error Messages
ERR1:
SET MSG='erError in last operation. RELERR='+RELERR
MSG MSG ; Display error message in Error field
GET
GO EXITUC
EXITUC:
MSG 'st ' ; Clear Status field
SET CONTRL = CONTRL &-257 ; Enable messages
SET OUTFLG = R0 ; Allow Menu Pick
SLI
MSG 'PRCommand Exited',0
SET WWSECT = 4 ; Restore search position
SET WWBYTE = 0
END

Enjoy!

Jos Martnez Rubio wrote:
I have this problem. I'm working with a steroplotter that is linked to Microstation V5 (yes!) by a mdl created by Leica Mi drawings mainly consist on 3d lstrings representing stones on walls, and are drawn with "place lstring space" command because if "place shape" were used, my stones wolud be planar (almost never seen). The problem is that when I'm closing the shape I cannot tentative the first data point until the command is finished so I have to reset before closing and then use a short segment to close the gap snaping both ends.

Seems to be stupid? yes. But imagine how many stones there are in a gothic cathedral then multiply this amount by the number of facets of each one of those stones and the resulting by five extra clicks.
...
 
You may be able to use that mdl with the 95(dos) version, which would offer a basic macro language solution. Otherwise, I modified another UCM and came up with this (15-20 minutes of tinkering time):

;------------------------------------------------------------------------------ ; 3DLS.UCM ;------------------------------------------------------------------------------ ; DESCRIPTION: This 3-D User Command is designed to simplify adding ; 3-D linestrings to design files during digitizing. ; Any keyin will close the linestring on itself ;------------------------------------------------------------------------------ ; BY: CHUCK RHEAULT, Greenman-Pedersen, Inc. Laurel, Md. 301-470-2772 ;------------------------------------------------------------------------------ ; VARIABLES: R0 - OUTFLG ; A2 - Beginning point X ; A3 - Beginning point Y ; A4 - Beginning point Z ; C0 - Beginning point as keyin XY=... ; C2 - Beginning point X as working units string ; C3 - Beginning point Y as working units string ; C4 - Beginning point Z as working units string ;------------------------------------------------------------------------------ ; CALLS: None ; ; CALLED BY: NONE ;------------------------------------------------------------------------------ TST NDICES NE 3 TWOD ; 3-D Files Only SET CONTRL = CONTRL !256 ; Disable messages SET R0 = OUTFLG ; Save OUTFLG settings SET OUTFLG = OUTFLG !8 ; Set to Allow Menu Pick ;------ Main Routine
START:
CMD PSPLST ; Place Space Line String
NEWLSS:
MSG 'PRIdentify Point (Enter CL to close)'
MSG 'CFPlace Lstring Space'
GET P,PNT1,K,CLOSE,M,EXITUC
PNT2:
GET K,CLOSE,P,SLI,R,SLI,M,EXITUC
INVINP:
MSG 'PRinvalid input - reset to continue'
GET
GO PNT2
SLI:
SLI
GO PNT2
PNT1:
SET A2 = XUR - GOXUOR
SET A3 = YUR - GOYUOR
SET A4 = ZUR - GOZUOR
CVT C2 = A2
SET C0 = C2 + ','
CVT C3 = A3
SET C0 = C0 + C3
SET C0 = C0 + ','
CVT C4 = A4
SET C0 = C0 + C4
SET C0 = 'XY=' + C0
KEY C0
GO PNT2
CLOSE:
KEY C0
KEY 'reset'
GO NEWLSS
TWOD:
MSG 'ER3-D tool in a 2-D file - reset to EXIT'
GET
GO EXITUC
;------ Error Messages
ERR1:
SET MSG='erError in last operation. RELERR='+RELERR
MSG MSG ; Display error message in Error field
GET
GO EXITUC
EXITUC:
MSG 'st ' ; Clear Status field
SET CONTRL = CONTRL &-257 ; Enable messages
SET OUTFLG = R0 ; Allow Menu Pick
SLI
MSG 'PRCommand Exited',0
SET WWSECT = 4 ; Restore search position
SET WWBYTE = 0
END

Jos Martnez Rubio wrote:
I have this problem. I'm working with a steroplotter that is linked to Microstation V5 (yes!) by a mdl created by Leica Mi drawings mainly consist on 3d lstrings representing stones on walls, and are drawn with "place lstring space" command because if "place shape" were used, my stones wolud be planar (almost never seen). The problem is that when I'm closing the shape I cannot tentative the first data point until the command is finished so I have to reset before closing and then use a short segment to close the gap snaping both ends.

Seems to be stupid? yes. But imagine how many stones there are in a gothic cathedral then multiply this amount by the number of facets of each one of those stones and the resulting by five extra clicks.
...
 
Status
Not open for further replies.

Latest threads

Back
Top