Hide Table of Contents
SOLIDWORKS Electrical API  2022.0.0
Electrical API
EwTitleBlockObjects.idl
Go to the documentation of this file.
1 #pragma once
2 
3 #if (__midl >= 501)
4  midl_pragma warning(disable:2111) /* Disable warning MIDL2111 regarding identifier lengths exceeding 31 chars. */
5 #endif
6 
7 import "oaidl.idl";
8 import "ocidl.idl";
9 
10 import "EnumDefinition.idl";
11 import "EwClassificationObjects.idl";
12 
13 /************************************************************************/
14 /* In his file, all TITLE BLOCK object */
15 /************************************************************************/
16 
17 /************************************************************************/
18 /* ENUMERATION */
19 /************************************************************************/
20 
21 /************************************************************************/
22 /* INTERFACES */
23 /************************************************************************/
28 [
29  object,
30  uuid(CF61F596-F971-48F6-8752-97270D27207A),
31  dual,
32  oleautomation,
33  nonextensible,
34  helpstring("IEwTitleBlockX Interface"),
35  pointer_default(unique)
36 ]
37 interface IEwTitleBlockX : IDispatch
38 {
39 
40 
48  LONG getID (EwErrorCode* errorCode);
49 
50 
60  BSTR getDescription (BSTR lgCode, EwErrorCode* errorCode);
61 
62 
72  EwErrorCode setDescription (BSTR lgCode, BSTR strValue);
73 
74 
82  LONG getClassNodeID (EwErrorCode* errorCode);
83 
84 
92  EwErrorCode setClassNodeID (LONG lNodeId);
93 
94 
102  BSTR getLibraryCode (EwErrorCode* errorCode);
103 
104 
112  EwErrorCode setLibraryCode (BSTR strLibraryCode);
113 
114 
122  DATE getModificationDate (EwErrorCode* errorCode);
123 
124 
132  DATE getCreationDate (EwErrorCode* errorCode);
133 
134 
143 
144 
152  BSTR getName (EwErrorCode* errorCode);
153 
154 
163  EwErrorCode setName (BSTR strName);
164 
165 
174 
175 
184 
185 
193  VARIANT_BOOL isWithRows (EwErrorCode* errorCode);
194 
195 
203  EwErrorCode setWithRows (VARIANT_BOOL bHasRows);
204 
205 
213  LONG getFirstRowNumber (EwErrorCode* errorCode);
214 
215 
223  EwErrorCode setFirstRowNumber (LONG lFirstRowNumber);
224 
225 
233  DOUBLE getFirstRowPosition (EwErrorCode* errorCode);
234 
235 
243  EwErrorCode setFirstRowPosition (DOUBLE dFirstRowPosition);
244 
245 
253  DOUBLE getRowHeight (EwErrorCode* errorCode);
254 
255 
263  EwErrorCode setRowHeight (DOUBLE dRowHeight);
264 
265 
273  LONG getNumberOfRows (EwErrorCode* errorCode);
274 
275 
283  EwErrorCode setNumberOfRows (LONG lNumberOfRows);
284 
285 
294 
295 
304 
305 
313  VARIANT_BOOL isWithColumns (EwErrorCode* errorCode);
314 
315 
323  EwErrorCode setWithColumns (VARIANT_BOOL bHasColumns);
324 
325 
334 
335 
343  EwErrorCode setFirstColumnNumber (LONG lFirstColumnNumber);
344 
345 
353  DOUBLE getFirstColumnPosition (EwErrorCode* errorCode);
354 
355 
363  EwErrorCode setFirstColumnPosition (DOUBLE dFirstColumnPosition);
364 
365 
373  DOUBLE getColumnWidth (EwErrorCode* errorCode);
374 
375 
383  EwErrorCode setColumnWidth (DOUBLE dColumnWidth);
384 
385 
393  LONG getNumberOfColumns (EwErrorCode* errorCode);
394 
395 
403  EwErrorCode setNumberOfColumns (LONG lNumberOfColumns);
404 
405 
414  EwErrorCode getScale (DOUBLE* dNumerator, DOUBLE* dDenominator);
415 
416 
425  EwErrorCode setScale (DOUBLE dNumerator, DOUBLE dDenominator);
426 
427 
436 
437 
445  EwErrorCode setCrossReferenceOffset (DOUBLE dCrossReferenceOffset);
446 
447 
458 
459 
468 
469 
478 
479 
486  EwErrorCode remove ();
487 
488 
501  EwErrorCode insertFromDwg (BSTR strDwgFilePath);
502 
503 
511  BOOL isAlreadyOpened (EwErrorCode* errorCode);
512 
513 
525  EwErrorCode getSheetSize (LONG lProjectID, DOUBLE* dWidth, DOUBLE* dHeight);
526 
527 
536  BSTR getModifiedBy (EwErrorCode* eErrorCode);
537 
538 
547  BSTR getCreatedBy (EwErrorCode* eErrorCode);
548 
549 
560  IEwClassificationX getClassification (EwErrorCode* errorCode);
561 
562 };
563 
568 [
569  object,
570  uuid(3A4CA3EB-B7F4-4197-A006-FDDA37190D03),
571  dual,
572  oleautomation,
573  nonextensible,
574  helpstring("IEwTitleBlockManagerX Interface"),
575  pointer_default(unique)
576 ]
577 interface IEwTitleBlockManagerX : IDispatch
578 {
584 
585 
589  LONG getCount ();
590 
591 
595  VARIANT getEwTitleBlockArray (EwErrorCode* errorCode);
596 
597 
602  IEwTitleBlockFiltersX newEwTitleBlockFilters ();
603 
604 
611 
612 
625 
626 }
IEwTitleBlockX newEwTitleBlock()
Create a IEwTitleBlockX object from the associated environnement.
IEwTitleBlockFiltersX newEwTitleBlockFilters()
Create an IEwTitleBlockFiltersX interface to get title blocks (IEwTitleBlockX) of associated environm...
EwErrorCode setEwMeasurementType(EwMeasurementType eMeasurementType)
Set the measurement type of this title block.
Use this interface to manage EwTitleBlockX objects.
Definition: EwTitleBlockObjects.idl:578
LONG getFirstColumnNumber(EwErrorCode *errorCode)
Get the first column number of this title block.
EwErrorCode setClassNodeID(LONG lNodeId)
Set the classification node ID of this title block.
DOUBLE getFirstColumnPosition(EwErrorCode *errorCode)
Get the first column position of this title block.
LONG getNumberOfRows(EwErrorCode *errorCode)
Get the number of rows of this title block.
BSTR getCreatedBy(EwErrorCode *eErrorCode)
Get the user name that created the current object.
LONG getID(EwErrorCode *errorCode)
Get the Id of this title block.
EwErrorCode
All errors codes for this API.
Definition: EnumDefinition.idl:21
IEwTitleBlockX findByFileTitle(BSTR strName)
Finds a title block by file title.
EwErrorCode setScale(DOUBLE dNumerator, DOUBLE dDenominator)
Set the scale of this title block.
LONG getNumberOfColumns(EwErrorCode *errorCode)
Get the number of columns of this title block.
EwErrorCode setCrossReferenceOffset(DOUBLE dCrossReferenceOffset)
Set the cross reference offset of this title block.
EwMeasurementType
All measurement type.
Definition: EwEnumeration.idl:273
EwErrorCode load()
Initialize this object inside the current environment.
EwErrorCode insertFromDwg(BSTR strDwgFilePath)
Insert new title block inside the current environment.
LONG getClassNodeID(EwErrorCode *errorCode)
Get the classification node ID of this title block.
EwErrorCode setFirstRowNumber(LONG lFirstRowNumber)
Set the first row number of this title block.
DATE getModificationDate(EwErrorCode *errorCode)
Get the last modification date of this title block.
Use this interface to manage a definition of a title block.
Definition: EwTitleBlockObjects.idl:38
BSTR getName(EwErrorCode *errorCode)
Get the name of this title block.
BSTR getDescription(BSTR lgCode, EwErrorCode *errorCode)
Get a description of this title block.
DOUBLE getColumnWidth(EwErrorCode *errorCode)
Get the column width of this title block.
DATE getCreationDate(EwErrorCode *errorCode)
Get the creation date of this title block.
EwErrorCode setColumnWidth(DOUBLE dColumnWidth)
Set the column width of this title block.
EwErrorCode update()
Update this object inside the current environment.
EwMeasurementType getEwMeasurementType(EwErrorCode *errorCode)
Get the measurement type of this title block.
IEwTitleBlockX findEwTitleBlockById(long lId, EwErrorCode *errorCode)
Finds a title block by id since 2020 SP0.
DOUBLE getFirstRowPosition(EwErrorCode *errorCode)
Get the first row position of this title block.
EwErrorCode getScale(DOUBLE *dNumerator, DOUBLE *dDenominator)
Get the scale of this title block.
EwErrorCode setWithRows(VARIANT_BOOL bHasRows)
Set if this title block have rows.
EwErrorCode setFirstColumnPosition(DOUBLE dFirstColumnPosition)
Set the first column position of this title block.
LONG getFirstRowNumber(EwErrorCode *errorCode)
Get the first row number of this title block.
EwErrorCode setName(BSTR strName)
Set the name of this title block.
VARIANT_BOOL isWithRows(EwErrorCode *errorCode)
Check if this title block have rows.
EwTitleBlockRowNumbering getEwTitleBlockRowNumbering(EwErrorCode *errorCode)
Get the rows numbering option of this title block.
EwErrorCode setNumberOfRows(LONG lNumberOfRows)
Set the number of rows of this title block.
BSTR getLibraryCode(EwErrorCode *errorCode)
Get the library code of this title block.
EwErrorCode setFirstRowPosition(DOUBLE dFirstRowPosition)
Set the first row position of this title block.
BSTR getModifiedBy(EwErrorCode *eErrorCode)
Get the last user name that modified the current object.
EwErrorCode insert()
Insert this object inside the current environment.
EwErrorCode setLibraryCode(BSTR strLibraryCode)
Set the library code of this title block.
IEwClassificationX getClassification(EwErrorCode *errorCode)
Get the classification of the current titleblock.
BOOL isAlreadyOpened(EwErrorCode *errorCode)
Check if the drawing is already opened.
EwErrorCode setEwTitleBlockRowNumbering(EwTitleBlockRowNumbering eTitleBlockRowNumbering)
Set the rows numbering option of this title block.
EwCreatorType getEwCreatorType(EwErrorCode *errorCode)
Get the creator of this title block.
DOUBLE getCrossReferenceOffset(EwErrorCode *errorCode)
Get the cross reference offset of this title block.
EwErrorCode setWithColumns(VARIANT_BOOL bHasColumns)
Set if this title block have hasColumns.
VARIANT_BOOL isWithColumns(EwErrorCode *errorCode)
Check if this title block have columns.
DOUBLE getRowHeight(EwErrorCode *errorCode)
Get the row height of this title block.
EwTitleBlockRowNumbering
All row numbering option for title block.
Definition: EwEnumeration.idl:682
EwErrorCode setRowHeight(DOUBLE dRowHeight)
Set the row height of this title block.
EwErrorCode setFirstColumnNumber(LONG lFirstColumnNumber)
Set the first column number of this title block.
EwCreatorType
All creator type.
Definition: EwEnumeration.idl:260
EwErrorCode setNumberOfColumns(LONG lNumberOfColumns)
Set the number of columns of this title block.
EwErrorCode getSheetSize(LONG lProjectID, DOUBLE *dWidth, DOUBLE *dHeight)
Gets the size of the dwg that contains the title block.
VARIANT getEwTitleBlockArray(EwErrorCode *errorCode)
return the array of IEwTitleBlockX of associated environment
EwErrorCode setDescription(BSTR lgCode, BSTR strValue)
Set a description of this title block.


Provide feedback on this topic

SOLIDWORKS welcomes your feedback concerning the presentation, accuracy, and thoroughness of the documentation. Use the form below to send your comments and suggestions about this topic directly to our documentation team. The documentation team cannot answer technical support questions. Click here for information about technical support.

* Required

 
*Email:  
Subject:   Feedback on Help Topics
Page:   SOLIDWORKS Electrical API: idl_converted/EwTitleBlockObjects.idl Source File
*Comment:  
*   I acknowledge I have read and I hereby accept the privacy policy under which my Personal Data will be used by Dassault Systèmes

Print Topic

Select the scope of content to print:

x

We have detected you are using a browser version older than Internet Explorer 7. For optimized display, we suggest upgrading your browser to Internet Explorer 7 or newer.

 Never show this message again
x

Web Help Content Version: API Help (English only) 2022 SP05

To disable Web help from within SOLIDWORKS and use local help instead, click Help > Use SOLIDWORKS Web Help.

To report problems encountered with the Web help interface and search, contact your local support representative. To provide feedback on individual help topics, use the “Feedback on this topic” link on the individual topic page.