public SpecService(Document doc, ISpecOptions options) { this.doc = doc; ed = doc.Editor; db = doc.Database; this.options = options; }
public static ISpecBlock CreateBlock(BlockReference blRef, string blName, ISpecOptions options) { Type typeBlock; if (options.TypesBlock.TryGetValue(blName, out typeBlock)) { return((ISpecBlock)Activator.CreateInstance(typeBlock, blRef, blName)); } else { return(null); } }