/// <summary> /// Adds a reference linetypes that will not be saved in files. /// </summary> /// <param name="linetype">Definition of new linetype. The information in linetype is copied. /// If linetype.Name is empty then a unique name of the form "Linetype 01" /// will be automatically created.</param> /// <returns> /// Index of new linetype or -1 on error. /// </returns> /// <since>5.0</since> public int AddReferenceLinetype(DocObjects.Linetype linetype) { IntPtr pConstLinetype = linetype.ConstPointer(); return(UnsafeNativeMethods.CRhinoLinetypeTable_AddLinetype(m_doc.RuntimeSerialNumber, pConstLinetype, true)); }
/// <summary>Modify linetype settings.</summary> /// <param name="linetype">New linetype settings. This information is copied.</param> /// <param name="index">Zero based index of linetype to set.</param> /// <param name="quiet"> /// if true, information message boxes pop up when illegal changes are attempted. /// </param> /// <returns> /// true if successful. false if linetype_index is out of range or the /// settings attempt to lock or hide the current linetype. /// </returns> /// <since>5.0</since> public bool Modify(DocObjects.Linetype linetype, int index, bool quiet) { IntPtr pConstLinetype = linetype.ConstPointer(); return(UnsafeNativeMethods.CRhinoLinetypeTable_Modify(m_doc.RuntimeSerialNumber, pConstLinetype, index, quiet)); }
/// <summary> /// Adds a new linetype with specified definition to the linetype table. /// </summary> /// <param name="linetype"> /// Definition of new linetype. The information in linetype is copied. /// If linetype.Name is empty then a unique name of the form "Linetype 01" /// will be automatically created. /// </param> /// <returns> /// Index of newline type or -1 on error. /// </returns> public int Add(DocObjects.Linetype linetype) { IntPtr pConstLinetype = linetype.ConstPointer(); return(UnsafeNativeMethods.CRhinoLinetypeTable_AddLinetype(m_doc.m_docId, pConstLinetype, false)); }