CADability dotNET
The Project type exposes the following members.
Constructors
Name | Description | |
---|---|---|
![]() | Project()()()() |
Creates an empty Project. The empty project contains clones of the globally defined
attributes and attribute lists (like colors, layers etc.)
|
![]() | Project(SerializationInfo, StreamingContext) |
Constructor required by deserialization
|
Methods
Name | Description | |
---|---|---|
![]() | Add | |
![]() | AddLayout |
Adds the specified Layout to the project.
|
![]() | AddModel |
Adds the given Model to the project. The attributes of the GeoObjects
in this model are merged into the attribute lists of this project. Fires a
ModelsChangedEvent.
|
![]() | AddProjectedModel | |
![]() ![]() | Construct | |
![]() ![]() | CreateSimpleProject | |
![]() ![]() | DeserializeObject | |
![]() | Export |
Export the project in one of the following formats:
dxf, dwg, iges, step, vrml, stl, sat and xt (sat and xt must be licensed seperately)
|
![]() | Finalize | (Overrides Object..::..Finalize()()()().) |
![]() | FindModel |
Returns the Model with the given name, Returns null if there is no
such model in the project.
|
![]() | GetActiveModel |
Returns the active Model of this project.
|
![]() | GetDefaultLayout |
Gets a default Layout for this project. If there is no layout
in this project a standard Layout is created and adde to the project
|
![]() | GetLayout |
Returns the Layout with the given index.
|
![]() | GetModel |
Returns the Model with the given index.
|
![]() | GetModelCount |
Returns the number of models in this project.
|
![]() | GetNamedValue | |
![]() | GetObjectData |
Implements ISerializable.GetObjectData. Override this method if your object is also serializable.
|
![]() | GetStandardModelView(Model) |
Liefert die Standard Darstellung des gegebenen Modells.
Wenn keine definiert ist, die Draufsicht.
|
![]() | GetStandardModelView(Model, Int32) | |
![]() ![]() | ReadFromFile(String) |
Creates a new project reading the data from the file with the given name.
If FileName is null, an OpenFileDialog will be displayed.
|
![]() ![]() | ReadFromFile(String, String) | |
![]() ![]() | ReadFromFile(String, String, Boolean) | |
![]() ![]() | ReadFromStream |
Creates a new project reading the data from the given stream.
|
![]() ![]() | ReadFromXML | |
![]() | RemoveLayout |
Removes the given Layout from the project. There must always be at least
one layout, so you cannot remove the last layout.
|
![]() | RemoveModel(Int32) |
Removes the Model with the given index from the project. Fires a
ModelsChangedEvent.
|
![]() | RemoveModel(Model) |
Removes the given Model from the project. Fires a
ModelsChangedEvent.
|
![]() | RemoveModelView(Int32) | |
![]() | RemoveModelView(ModelView) |
Removes the given ModelView from the project. There must always be at least
one modelview, so you cannot remove the last modelview.
|
![]() | RenameLayout |
Renames the
|
![]() | SaveModified |
Überprüft, ob Daten verändert wurden (IsModified) und fordert ggf. den Anwender auf
das Projekt zu speichern.
|
![]() ![]() | SerializeObject | |
![]() | SetActiveModel | |
![]() | SetDefaults | |
![]() | SetNamedValue | |
![]() | WriteToFile |
Saves the project in a file with the given FileName.
If FileName is null, a SaveFileDialog is presented. Uses WriteToStream.
|
![]() | WriteToStream |
Writes the project data to the given stream. Resets the IsModified flag
|
![]() | WriteToXML |
Fields
Name | Description | |
---|---|---|
![]() ![]() | Constructor | |
![]() | UserData |
The UserData object can take any kind of data. If the data objects
are serializable i.e. implement [!:System.Runtime.Serialization.ISerialzable] they are serialized
together with the project. If they implement the IShowProperty interface
they are displayed and can be modified on the project tab page of the control center.
|
Properties
Name | Description | |
---|---|---|
![]() | AdditionalSymbols | |
![]() | ColorList | |
![]() | DeferRefresh | |
![]() | DimensionStyleList | |
![]() | EntryType |
Overrides EntryType,
returns GroupTitle.
(Overrides IShowPropertyImpl..::..EntryType.) |
![]() | FileName |
The name of the file in which this project ist stored. May be null.
|
![]() | FilterList | |
![]() | GdiViews |
Gets a list of all defined GDI2DViews in this project.
|
![]() | HatchStyleList | |
![]() | IsModified |
Gets or sets the modified flag
|
![]() | LayerList | |
![]() | LayoutCount |
Gets the number of layouts in this project
|
![]() | LinePatternList | |
![]() | LineWidthList | |
![]() | StyleList | |
![]() | SubEntries |
Overrides SubEntries,
returns the subentries in this property view.
(Overrides IShowPropertyImpl..::..SubEntries.) |
![]() | SubEntriesCount |
Overrides SubEntriesCount,
returns the number of subentries in this property view.
(Overrides IShowPropertyImpl..::..SubEntriesCount.) |
![]() | SymbolList | |
![]() | Undo |
Events
Name | Description | |
---|---|---|
![]() ![]() | BindToTypeEvent |
Event that gets called when a type cannot be resolved during the deserialization. Provide the Type
of an constructable object as a result.
|
![]() | ModelsChangedEvent | |
![]() | RefreshEvent | |
![]() | ViewChangedEvent |