Tree survey CAD software. Draw BS5837 compliant arboricultural constraints and protection plans. Highly flexible and easy to use.
rkauskh Moderator Dipl.-Ing. (FH) Versorgungstechnik, Master Eng. IT-Security & Forensic
Beiträge: 2912 Registriert: 15.11.2006
Windows 10 x64, AIP 2020-2025
erstellt am: 14. Apr. 2012 18:35 <-- editieren / zitieren --> Unities abgeben: Nur für isensa
Hi
Da stimmt irgendwas nicht. Entweder ist oDoc ein PartDocument oder eine PartComponentDefinition vom Typ. Deswegen geht entweder oDoc.Update oder oDoc.MassProperties in die Binsen.
Code:Private Sub Mass()
Dim oDoc As PartDocument Set oDoc = ThisApplication.ActiveDocument
Dim oPartOcc As PartComponentDefinition Set oPartOcc = oDoc.ComponentDefinition
Dim oMassProp As MassProperties Set oMassProp = oPartOcc.MassProperties Dim omass As String
If oDoc.RequiresUpdate = True Then Call oDoc.Update End If
omass = oMassProp.Mass
End Sub
------------------ MfG RK
[Diese Nachricht wurde von rkauskh am 14. Apr. 2012 editiert.]