Hi,I have the following problem with creating a display rules action:I would like to create a pattern that applies a pattern by selecting a pattern from a cell library.This is the code I wrote
long elemId = 0;//1,2,3,4,5,6,7 ElementId elementId = new ElementId(ref elemId); AreaPatternAction.AreaPatternParams patternParams = new AreaPatternAction.AreaPatternParams( elementId, 1, false, 45, 5, 1, 1); IDisplayRuleAction ruleAction = new AreaPatternAction(patternParams, dgnFile); displayRuleElement.AddAction(ruleAction);
In the file, in which I want to create the display rules, I hooked a cell library but the result is the following
the cell model is empty.
I suppose the problem may arise from how I calculate the ElementId object
Any ideas on this?
thanks for the help,
greetings
Salvio