Hello!
I am creating batch file to perform the following on each sheet file:
1: select plot frame from the reference file ( courtesy one of the threads on this forum)
# loading selectionby for one of the selection options#
load mdl selectby
place fence fromshape;
level element select file:referencefile.dgn framelevel
#trying several options without success in order to initiate choice of the element here#
choose selection
dx=0,0
selview 1
point ab
dl=0,0
selectionby execute
none of the options above create "left-click" effect that would place fence around my selected shape ( which is a single rectangle placed on specific level for the purpose of plotting)
After selecting this shape (manually at this point) I actually need to set fence mode to "VOID", as I would like to delete everything that is selected OUTSIDE of the frame
so, I cannot find the fence mode key-in that would switch fence selection to "void"
reason for above manipulations is, that I am trying to select and delete all tag sets that were double-and triple-placed, and to leave only one that is within the plotting frame. the other method of selection ( by "selectby") would not work in this case , as these tagsets are completely identical, and I will not be able to separate them by properties.
Thank you!
------------------------------
using: AECOSIM Buiding Designer V8i (Select Series 6)
Version 08.11.09.866
try doing all the steps by hand while having the vba macro recorder running then you can read the vba text in the vba editor to see what you can steal...
Lorys
Started msnt work 1990 - Retired Nov 2022 ( oh boy am I old )
But was long time user V8iss10 (8.11.09.919) dabbler CE update 16 (10.16.00.80)
MicroStation user since 1990 Melbourne Australia.click link to PM me
It sounds like you are trying to remove duplicates of tag-sets placed in your design files. It might be worth considering using the Design File Cleanup tool which has options to specifically remove duplicates like these.
https://communities.bentley.com/products/microstation/w/microstation__wiki/18564/data-cleanup-key-in-for-batch-process
https://communities.bentley.com/products/microstation/w/microstation__wiki/14770/how-to-check-for-overlapping-elements
If this is not correctly understood from your post it might be worth following the suggestion of Lorys and to record the steps of the workflow you are performing which will provide any specific key-ins required.
RegardsAndrew BellTechnical SupportBentley Systems
Hi Denis,
please, read and follow the forum best practices!
It's not only about to specify product and version (or build nubmer) exactly in every question, but also to format the question properly. Use Insert > Insert code tool to insert key-ins, code or any other specifically formated/colorized content in your text. Right now, it's ugly and hard to read.
Regards,
Jan
Bentley Accredited Developer: iTwin Platform - AssociateLabyrinth Technology | dev.notes() | cad.point
Denis Erlich said:so, I cannot find the fence mode key-in that would switch fence selection to "void"
A key-in chain to start fence operation, set the fence mode and to enter acceptation point:
fence delete;lock fence void outside;xy=#,#
With regards,
Jan, thank you , I will adjust :)