Jump to content
Sign in to follow this  
TiTaNiuM sAMuRai

Class existentialism

Recommended Posts

Is there a function to determine if a particular class exists?

For a non-existing class, will calls such as those which return the class attributes return a null value?

Share this post

Link to post

Function ClassExists(ClassName : STRING) : BOOLEAN;BEGIN h1 := Nil; h1 := GetObject(ClassName); IF (h1 <> Nil) & (GetType(h1) = 94) THEN ClassExists := True ELSE ClassExists := False;END;


Share this post

Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  


7150 Riverwood Drive, Columbia, Maryland 21046, USA   |   Contact Us:   410-290-5114


© 2018 Vectorworks, Inc. All Rights Reserved. Vectorworks, Inc. is part of the Nemetschek Group.

  • Create New...