/// <summary> /// Get schema location for symbol /// </summary> /// <param name="proxy">E3.series ISymbolInterface COM proxy object</param> /// <returns>Schema location struct or null if not placed</returns> public static SchemaLocationStruct?GetSchemaLocationStruct(this E3SymbolProxy proxy) { object x = null; object y = null; object grid = null; int sheetId = proxy.GetSchemaLocation(ref x, ref y, ref grid); if (sheetId == 0) { return(null); } return(new SchemaLocationStruct((double)x, (double)y, grid as string, sheetId)); }
/// <summary> /// Check for symbol is placed on the sheet /// </summary> /// <param name="proxy">E3.series ISymbolInterface COM proxy object</param> /// <returns></returns> public static bool IsPlaced(this E3SymbolProxy proxy) => proxy.GetSchemaLocationStruct().HasValue;