Our 3D CAD supplier models have been moved to 3Dfindit.com, the new visual search engine for 3D CAD, CAE & BIM models.
You can log in there with your existing account of this site.
The content remains free of charge.
Category is the name for a unique rule (condition).
Via categories blocks and keys can be specified.
While using a block or key, one checks whether the rule is fulfilled. Only then is the block or key used.
In block and key the category is applied through use of the rounded parenthesis in the name (ex. "is2d", "is3dAsm"). During runtime those blocks and keys are evaluated whose categories are valid.
If more than one category is stated (separated by comma), then they must all be valid.
If multiple keys are valid, then the one with the most conditions is taken.
When stringing keys with categories together a complex set of rules can be made.
FileName=?“Standard/Default“ FileName(isPlant())=?“Flower“ FileName(isAnimal(),isTall())=?“Giraffe“ FileName(isAnimal())=?“Dog“
Example for using a category at key level:
DocBeforeSave(is3dasm)=GetObject("iface.defaultcadcallback").AsmBeforeSave DocBeforeSave(is3dpart)=GetObject("iface.defaultcadcallback").PartBeforeSave
Example for using a category at block level:
[CreationOptions(is2d)]
Note | |
---|---|
Categories
are created in the configuration file |