Getting Started Common Acronyms FAQ Forum Help Forum Tips Secure File Upload Helpful GuidelinesInserting and Attaching images, videos, or files to postsProduct Community Directory SELECTsupport
Have you tried first writing down all the steps to do this manually or by hand for say 2 or 3 files..
Then use the macro recorder to record what your doing by hand ...
Then run the maco to see if it does all the steps if it does then open the macro with the edit command or with note pad and see what its doing so you can work out how to make what you want happen.. then you can modify it to run as amacro and use the batch processor to run it on various files...
Ill give that a try and get back to you. Im trying to attach base files to sheets and clip them to a boundary as I go along. The elements that im clipping to are unique to each sheet so I dont believe the xy location will work.
This is the work flow im trying to achieve.
Run Batch Process
........at this point i would manually select the element to clip to
Im not really familiar with any of this "language". I've only picked up what I can from forums and very basic scripts that have been used previously for attaching, detaching, and screening.
I need the batch process to be able to pause in between each sheet and wait for my input.
What input are you doing? Why not put the input in your script One %d only allows for one data point, if you need more than one data point then %d; %d.
Does the reference file attach in your Script?
Try doing only one reference attachement first. To find out the xy location of an object you can do element information on the object and look under Geometry>Segements>Start
V8i SS2 v.08.11.07.443AECOsim BD V8i
Damon and Roland. Thank you both for getting back to me so soon.
I need the batch process to be able to pause in between each sheet and wait for my input. Also i have not yet been able to find the xy coordinates of an element that has already been place and clipped to.
Using the command %d did not achieve that result. If you have any more possibilities im eager to try them out.
You could try using the %d command, which is mstn command to wait for the user input before continuing.
See this for more info:
reference attach P300XXX-F-BLNE.dgn,,,,,,0
reference clip boundary P300XXX-F-BLNE.dgn:%d
reference attach P300XXX-F-FEAT.dgn,,,,,,0
reference clip boundary P300XX-F-FEAT.dgn;%d
xy=0,0; vi=1 (put this in after the reference clip)
If you know the location of the element to select for clipping then, find it's xy location and place that in place of 0,0.
Hope this helps,
I am attempting to write a batch process script to add several references and then clip them using an element within the sheet.
reference clip boundary P300XXX-F-BLNE.dgn
reference clip boundary P300XX-F-FEAT.dgn
I need to be able to select the element for each reference as the script runs. Unfortunately it does not wait for user input and i am only able to clip the very last one because it blows through the previous user input.
Either it needs to wait for me to select for each "reference clip boundary" or i can "reference clip boundary *" and clip everything but i will need to exclude the border file. At this point i have not figured out how to do that.
If you have any ideas or i can clarify anything please let me know.