Automating the use of Label Display in Bentley Facilities Planner

Hello everyone! I'm currently trying to automate the use of the Label Display tool in Bentley Facilities Planner. My goal is to create a script that I could batch run in several files to achieve the mentioned labelling.

I'm using Microstation CONNECT Edition.

I have experience with VBA Macros in Office and LISP in AutoCAD but I'm knew to programming in Microstation so any kind of guidance would be much aprecciated.

Should I use VBA Macros or something else?

How can I find the right commands to automate the use of this tool?

Thank you in advance.

Best Regards

Allow me to explain a bit further what I want to accomplish.

I wish to create a script to label the rooms of several files according to a template. The general goal is to have each room in each of the files labelled with a room stamp (Microstation Cell/AutoCAD Block) cointaing information of the rooms. This files I will later convert into DWG files.

I have created a script to take text files inside polygons in AutoCAD (AutoLISP) and create the room stamps (AutoCAD Blocks with attributes), but for this I need to import the information for each room via labelling as text objects inside the polygons before DWG conversion.

Once I achieve this I was also thinking about creating the room stamps entirely in BFP to avoid the use of AutoCAD.

What are your thoughts on this? Am I on the right track? Any help would be much aprecciated.

Parents Reply
  • Hello Federico,

    Unfortunately I don't know other tool, which could show us Class IDs and yes Marc is right, you can get this tool after you will install ProjectWise Administrator.
    bf display command should be used with Class ID and Attribute ID numbers, otherwise it will just open labeling dialog.
    Using ProjectWise Class Editor you will get not only ID numbers, but full administrative functionalities and options to manage your Bentley Facilities configuration.

    Best Regards,
    Kestutis Mitkus

    Application Engineer, Building, Structural & Plant

     

Children
  • Hi Federiko,

    If you don't have opportunity to install ProjectWise Class Editor, then you can find class ID numbers directly in your database tables.
    In below picture is example from SQL database, where we have dbo.ODS_CLASS table, which has a list of all classes with their ID numbers.

    same for Attributes.

    Best Regards,
    Kestutis Mitkus

    Application Engineer, Building, Structural & Plant

     

  • Hi Federico,

    Were you able to use Labeling tool suggestion? Regarding CLASSID value I think you should be able to get it from your support, because I have helped them to fix ProjectWise Class Editor, which can display all information. This way you don't need to search in Database for them. If you need any assistance with this Labeling tool, then We can have a live meeting and together with Afroja we can find all required IDs.

    As well I believe we can create VBA script, which can help you in achieving your labeling requirement.

    Best Regards,
    Kestutis Mitkus

    Application Engineer, Building, Structural & Plant