Part |
The PartSize type exposes the following members.
Name | Description | |
---|---|---|
![]() | Application |
Gets the Application associated with the DBObject.
Not implemented.
(Inherited from DBObject) |
![]() | Description |
Gets or sets the description.
(Inherited from DBObject) |
![]() | Document |
Gets the Document associated with the DBObject.
Not implemented.
(Inherited from DBObject) |
![]() | IsUsed |
Gets whether the style is used by other objects in the current drawing.
(Inherited from DBObject) |
![]() | MaterialStyleId | Gets or sets the object id of the material style to apply side by side with the part size. |
![]() | Name |
Gets or sets the name.
(Inherited from DBObject) |
![]() | PartStyleId | Gets or sets the object id of the part style to apply side by side with the part size. |
![]() | PayItems | Gets or Sets the payitem list. |
![]() | RulesStyleId | Gets or sets the object id of the rule set style to apply side by side with the part size. |
![]() | SizeDataRecord | Gets the serialized catalog part size record. |
1[CommandMethod("testSizeDataRecord")] 2public void testSizeDataRecord () { 3 Transaction ts = Application.DocumentManager.MdiActiveDocument.Database.TransactionManager.StartTransaction(); 4 5 PartsListCollection col = CivilApplication.ActiveDocument.Styles.PartsListSet; 6 PartsList partList1 = ts.GetObject(col["Standard"], OpenMode.ForWrite) as PartsList; 7 PartFamily partFamily = ts.GetObject(partList1["Concrete Pipe"], OpenMode.ForWrite) as PartFamily; 8 PartSize partSize = ts.GetObject(partFamily["12 inch Concrete Pipe"], OpenMode.ForWrite) as PartSize; 9 10 // Save a reference to the SizeDataRecord to restore later. 11 PartDataRecord record = partSize.SizeDataRecord; 12 PartDataField field = record.GetDataFieldBy(PartContextType.MinCurveRadius); 13 field.Value = 1.0; 14 double newVal = ( double )field.Value; 15 16 // Re-set the SizeDataRecord property. The data will not be saved without this step. 17 partSize.SizeDataRecord = record; 18 19 ts.Commit(); 20}