Академический Документы
Профессиональный Документы
Культура Документы
org/)
Login (http://www.coe.org/l/li/in/) Forgot Your Password? (l/li/if)
(https://twitter.com/COEHQ ) (https://www.facebook.com/COE-110142939522/ )
(https://www.linkedin.com/company/10467092/) (https://www.youtube.com/user/coeorg )
i am trying to write a macro to calculate total area of same coloured surfaces so i tried this
commands. it works but only show last area value. I want to see overall area value of
selection.i tried (i+1) vs.. but it doesnt work. How can i do that?
Sub CATMain()
Selection.ClearSelection.Search ("'Topology'.Face.Color='(175,255,175)';scr")
For i = 1 To Selection.Count2Set
myref = Selection.Item(i).Reference
AllArea = myarea
Debug.Print
Next i
End Sub
Alexandre Desaulniers
There are a few things wrong but the main one to fix it was this
Dim Selection As Selection ' Selection1 declared but Selection used ... Fixed
For i = 1 To Selection.Count2
AllArea = myarea
Debug.Print
Next i
End Sub
Taner Karagöz
Thanks for fixing, Alexandre. despite the wrong things, it works but our problem still
continues.I need to calculate overall surface area after loop. I will try to do this with loop
(using i parameter) but it gives area values partially.
Ex:
B face is 4000mm2
Alexandre Desaulniers
Taner Karagöz
thanks alex, how i can i use this macro with 3dxml documents?
Alexandre Desaulniers
If you are trying to get it inside a 3DXML this means V6 document. I think the way to define
the partdocument is what changed.
Sorry
Copyright © 2018 COE. All Rights Reserved
800-COE-CALL - 330 N. Wabash Ave, Suite 2000 - Chicago, IL 60611 USA
All material, files, logos and trademarks within this site are properties of their respective
organizations.
Terms of Service (http://www.coe.org/p/cm/ld/fid=2) - Privacy Policy (page/privacy-policy) - Contact
(mailto:coe@coe.org?Subject=COE%20Website%20Question)