Hi All,
I am using Aecosim Building designer V8i Ss6, trying to create a vba macro to intersect a slab form with a smart solid.
I have a couple of questions:
1 - Are Slab forms considered Solid Elements in mvba ? If it is the case Is there a way to get the Slab by user input then exclude that slab from the smartsolid enumerator when performing the task needed ?
2- When i record the Solid modeling tool used in Aecosim for the intersection i get ( CadInputQueue.SendCommand "CONSTRUCT INTERSECTION" ), searched the entire index along with forum discussion i only found GetIntersectionShapesFromRegion and GetRegionIntersection.
Is there a function that intersects solids( a Slab and a smart solid) then sets the slab attributes and properties to the result of the intersection ? ( The exact thing that the command construct intersection does)
3- If this is not possible in mvba can anyone provide a c# approach ?
Best Regards,
kal
kal said:Are Slab forms considered Solid Elements in mvba ?
MicroStation knows nothing about objects created by a vertical app. such as AECOsim. MicroStation VBA probably considers a Form to be a cell having some opaque components.
You must use whatever extensions to VBA are provided by the vertical app..
kal said:If this is not possible in mvba can anyone provide a c# approach ?
No. You're using MicroStation V8i, and there is no .NET API. When you write C# code you invoke the VBA COM server via an InterOp.
Regards, Jon Summers LA Solutions
There should be a TFCOM.chm in your C:\Program Files (x86)\Bentley\AECOsimBuildingDesigner V8i\AECOsimBuildingDesigner\mdlapps folder
Should also download the ABD SDK
The Chinese ABD forum seems to have a lot more discussion about programming ABD, compared to the decadent Western ones. :-)
Thank you Jon, saved me a lot of useless effort. I was halfway through my script.
I have checked the TFCCOM.chm still can’t find what I am looking for.
Downloading the ABD SDK well i wish but it is not an option in this project.
Guess I am left with learning Chinese :))