Subassembly Composer -- How to ask if a point exists

Subassembly Composer -- How to ask if a point exists

tcorey
Mentor Mentor
2,511 Views
4 Replies
Message 1 of 5

Subassembly Composer -- How to ask if a point exists

tcorey
Mentor
Mentor

Using Subassembly Composer, we want to test for daylight. If daylight is not found, out Auxiliary Point will not be created. How do we code a decision that says "If AP1 does not exist...?"

 

TIA,

 

Tim



Tim Corey
MicroCAD Training and Consulting, Inc.
Redding, CA
Autodesk Platinum Reseller

New knowledge is the most valuable commodity on earth. -- Kurt Vonnegut
0 Likes
Accepted solutions (1)
2,512 Views
4 Replies
Replies (4)
Message 2 of 5

doni49
Mentor
Mentor
Accepted solution

AP1.IsValid()

 

http://knowledge.autodesk.com/support/autocad-civil-3d/learn-explore/caas/CloudHelp/cloudhelp/2014/E...

 

http://knowledge.autodesk.com/support/autocad-civil-3d/learn-explore/caas/CloudHelp/cloudhelp/2014/E...



Don Ireland
Engineering Design Technician




If a reply solves your issue, please remember to click on "Accept as Solution". This will help other users looking to solve a similar issue. Thank you.


Please do not send a PM asking for assistance. That's what the forums are for. This allows everyone to benefit from the question asked and the answers given.

Message 3 of 5

tcorey
Mentor
Mentor

Thanks, Don!



Tim Corey
MicroCAD Training and Consulting, Inc.
Redding, CA
Autodesk Platinum Reseller

New knowledge is the most valuable commodity on earth. -- Kurt Vonnegut
0 Likes
Message 4 of 5

4thespirit
Contributor
Contributor

I know how to use the "ISVALID" but my question is how do I simulate that point being invalid while still in SAC so I can see how my subassembly will behave when that is true (the point does not exist)?

0 Likes
Message 5 of 5

joantopo
Mentor
Mentor

@4thespirit

 

You can disable a target (checkbox). In this case, daylight, you can disable the surface target in SAC and your scenario will be in "IsValid=False".

Autocad C3D 2019 SP3, 2020 & 2021
Intel I9 9900K with frontal watercooler alphacool eisbaer 360 (original fans mounted in pull)- 3 fans Corsair 120 ML PRO in push.
MOBO Gygabyte Z390 Aorus Master- Corsair RGB Vengeance 64GB RAM (4x16) CL16
Nvidia Quadro RTX 4000
Samsung 970 EVO PLUS 1TB (unit C). Samsung 970 PRO 512GB (for data)
Power Supply: Corsair TX850M PLUS


Descubre mi programa VisorNET para Civil 3D:
https://apps.autodesk.com/CIV3D/es/Detail/Index?id=appstore.exchange.autodesk.com%3avisornet_windows32and64%3aes