-
FlexPro
- At a Glance
- Features & Options
- Applications
- All Advantages
- What’s New in FlexPro 2021
- Try FlexPro For Free
- FlexPro View OEM Freeware
- Buying Guide
- Login
- Language
-
-
-
- +49 6894 929600
- infoweisang.com
- Google Maps
- Products
- News
- Support
- Company
- Contact
- Login
- Language
-
-
-
- +49 6894 929600
- infoweisang.com
- Google Maps
Home > Community > Automation and VBA > Diagram name > Reply To: Diagram name

To access the database currently working on, use the global ActiveDatabase property. You may also use ThisDatabase to access the project database containing the VBA code.
The Database object has an ActiveObject property to use the FpObject which has the focus. There are also properties Selection and SelectedObject to get the object(s) chosen in the object list.
The name of an object can be obtained by the property Name, the full path (including extension) with Fullname.
Dim oFpObj As FpObject
Set oFpObj = ActiveDatabase.ActiveObject
Select Case oFpObj.ObjectType
Case fpObjectType2DDiagram
MsgBox "Selected 2D-Diagram: " & oFpObj.Name & vbCrLf _
& "(Full path name: " & oFpObj.FullName & ")"
Case fpObjectType3DDiagram
MsgBox "Selected 3D-Diagram: " & oFpObj.Name & vbCrLf _
& "(Full path name: " & oFpObj.FullName & ")"
Case Else
MsgBox "Selected Object: " & oFpObj.Name & vbCrLf _
& "(Full path name: " & oFpObj.FullName & ")"
End Select
You are currently viewing a placeholder content from Facebook. To access the actual content, click the button below. Please note that doing so will share data with third-party providers.
More InformationYou need to load content from reCAPTCHA to submit the form. Please note that doing so will share data with third-party providers.
More InformationYou are currently viewing a placeholder content from Instagram. To access the actual content, click the button below. Please note that doing so will share data with third-party providers.
More InformationYou are currently viewing a placeholder content from X. To access the actual content, click the button below. Please note that doing so will share data with third-party providers.
More Information