MCPcopy Create free account

hub / github.com/JohnYang1210/PycomCAD / functions

Functions110 in github.com/JohnYang1210/PycomCAD

↓ 6 callersFunctionArrayTransform
x: any kind of array in python,such as ((1,2,3),(1,2,3),(1,2,3))
pycomcad.py:30
↓ 4 callersMethodGetVariable
(self,name)
pycomcad.py:231
↓ 4 callersFunctionVtObject
converts obj in python into required obj array
pycomcad.py:42
↓ 3 callersFunctionVtVertex
Converts 2D coordinates of a serial points into the required float array
pycomcad.py:36
↓ 2 callersMethodAddCircle
add a circle, centerPnt's type is Apoint
pycomcad.py:452
↓ 2 callersFunctionAngleDtoR
convert degree to rad
pycomcad.py:56
↓ 2 callersFunctionApoint
Converts x,y,z into required float array as the arguments of coordinates of a point
pycomcad.py:24
↓ 1 callersMethodAddHatch
The note of arguments can be seen as below: (1)patternType is the built-in integer constants which can be got by win32com.client.constants.X,here
pycomcad.py:492
↓ 1 callersFunctionFilterData
fdata shall be tuple.Refer to DXF in acad_aag.chm to learn about DXF group code.
pycomcad.py:75
↓ 1 callersFunctionFilterType
ftype shall be tuple.Refer to DXF in acad_aag.chm to learn about DXF group code.
pycomcad.py:69
↓ 1 callersMethodGetDimStyle
:param dimname:str or int,the name or index of dim style :return:specified dim style object
pycomcad.py:1386
↓ 1 callersMethodGetLayer
get an indexed layer layer:int or string, the index or the name of layer which exists already.
pycomcad.py:797
↓ 1 callersMethodGetOpenedFile
Return already opened file whose index is index or name is name as the Current file :param file: int,or string,the number of index or the name
pycomcad.py:297
↓ 1 callersMethodGetPoint
Gets the selected point
pycomcad.py:1429
↓ 1 callersMethodPrompt
Displays a prompt on the command line. message: string.
pycomcad.py:1486
↓ 1 callersMethodSpace
Automatically deciding the active layout is ModelSpace or PaperSpace.
pycomcad.py:122
↓ 1 callersMethodZoomExtents
(self)
pycomcad.py:402
MethodAboutEntityObject
<This method is created only for the noting purpose> About editting autocad entity object:Users shall consult the acadauto.chm located in C:\\Pr
pycomcad.py:522
MethodActivateDimStyle
Activate DimStyle dimname :param dimname: str or int,the name or index of dim style :return: None.
pycomcad.py:1398
MethodActivateFile
Activate already opened file whose index is index or name is name as the Current file :param file: int,or str,the number of index or the name o
pycomcad.py:311
MethodActivateLayer
Activate layer layer:str or int, the index or the name of the being activated layer
pycomcad.py:774
MethodActivateLinetype
typename:string, ensure the typename has been loaded successfully.
pycomcad.py:854
MethodActivateTextStyle
Activate the created textstyle object textStyleObj:textStyle object
pycomcad.py:1043
MethodActivateUCS
ucsObj: UCS object
pycomcad.py:956
MethodActiveDimStyle
return a dim style set by system variable
pycomcad.py:1380
MethodActiveLayer
:return: ActiveLayer object
pycomcad.py:816
MethodAddArc
add an arc, startAngle and endAngle are both in the form of degree
pycomcad.py:459
MethodAddDimAligned
Creates an aligned dimension object extPnt1:Apoint type,the 3D WCS coordinates specifying the first endpoint of the extension line extPnt2:Apoi
pycomcad.py:1265
MethodAddDimAngular
Creates an angular dimension for an arc, two lines, or a circle vertex,Apoint type,The 3D WCS coordinates specifying the center of the circle or
pycomcad.py:1299
MethodAddDimDiametric
Creates a diametric dimension for a circle or arc given the two points on the diameter and the length of the leader line chordPnt:Apoint type,The
pycomcad.py:1289
MethodAddDimOrdinate
Creates an ordinate dimension given the definition point and the leader endpoint definitionPnt,Apoint type,The 3D WCS coordinates specifying the
pycomcad.py:1308
MethodAddDimRadial
Creates a radial dimension for the selected object at the given location center:Apoint tyoe chordPnt:Apoint type,The 3D WCS coordinates specify
pycomcad.py:1281
MethodAddDimRotated
Creates a rotated linear dimension xlPnt1:Apoint type,the 3D WCS coordinates specifying the first endpoint of the extension line xlPnt2:Apoint
pycomcad.py:1273
MethodAddEllipse
add ellipse, the type of majorAxis is Apoint
pycomcad.py:485
MethodAddLeader
Creates a leader line based on the provided coordinates or adds a new leader cluster to the MLeader object pntArray,The array of 3D WCS coordinat
pycomcad.py:1316
MethodAddLine
The type of startPoint and endPoint are both Apoint
pycomcad.py:437
MethodAddLwpline
LightWeight Poly line, this method requires the group of 2D vertex coordinates(that is x,y), This method is recommended to draw line
pycomcad.py:444
MethodAddMText
Creates an MText entity in a rectangle defined by the insertion point and width of the bounding box. textString:string insertPnt:Apoint type
pycomcad.py:1146
MethodAddPoint
apoint shall be got through Apoint function
pycomcad.py:430
MethodAddSolid
Creates a 2D solid polygon. pnt1,pnt2,pnt3,pnt4:Apoint type
pycomcad.py:515
MethodAddSpline
fitpoints are array of 3D coordinates of points,such as (1,2,3,4,5,6) startTan is the starting vector which is the type of Apoint, and the same i
pycomcad.py:477
MethodAddTable
add a table in ModelSpace. InsertionPoint:Apoint type. NumRows:The number of rows in the table. NumColumns:The number of columns in the tabl
pycomcad.py:466
MethodAddText
add single text textString:string,the inserted single text insertPnt:Apoint type,insert point height:the text height
pycomcad.py:1135
MethodAngleFromXAxis
Gets the angle of a line from the X axis pnt1:Apoint type,The start point of the line; pnt2:Apoint type,The endpoint of the line.
pycomcad.py:1417
FunctionAngleRtoD
convert rad to degree
pycomcad.py:62
MethodAppPath
return Autocad Application path
pycomcad.py:147
MethodClose
Close current file :return:
pycomcad.py:257
MethodCreateBlock
insertPnt:Apoint type,the insertion base point blockName:string,the name of the new-created block
pycomcad.py:913
MethodCreateDimStyle
creat a new dimension style named name. name:string Once created, Using the created dimstyle object's CopyFrom() method to get an existed dimst
pycomcad.py:1339
MethodCreateLayer
create new layer named layername(string)
pycomcad.py:767
MethodCreateNewFile
Create a new dwg file,by default, the name is Drawing1.dwg
pycomcad.py:242
MethodCreateTextStyle
testStyleName:string,the name of new created text style
pycomcad.py:1037
MethodCreateUCS
origin:Apoint type,origin point of the new CS xAxisPnt:Apoint type,one point directing the positive direction of x axis of the new CS yAxisPnt:
pycomcad.py:947
MethodCurrentFilename
:return: str,the name of current file name
pycomcad.py:375
MethodDeepClone
Deep clone objects from current file to specified file's ModelSpace :param objects: objects needed to be deep cloned.Type: IAcadSelectionSet(sele
pycomcad.py:325
MethodDimStyle0
return created dimension style object whose index is 0 in modelspace,
pycomcad.py:1367
MethodDimStyleNames
:return: list,all names of defined dim style
pycomcad.py:1358
MethodDimStyleNumbers
:return: int,the total number of defined dim style
pycomcad.py:1352
MethodDimStyles
return dimstyles object
pycomcad.py:1374
MethodEnterLayout
enter layout, so the active layout may become model,or one paperspace. name_or_index:string,the name of layout;int,the index of layout For exam
pycomcad.py:203
MethodFilePath
return current file path
pycomcad.py:382
MethodGetActiveFontInfo
return a tuple (typeFace,Bold,Italic,charSet,PitchandFamily) of the active textstyle object
pycomcad.py:1050
MethodGetAngle
Gets the angle specified
pycomcad.py:1424
MethodGetCurrentUCS
Before activate the new created UCS, it's better to get the current UCS in case of activating it after tasks in the activated new created UCS.
pycomcad.py:962
MethodGetDistance
Gets the point selected in AutoCAD pnt:Apoint type,optional,The Point parameter specifies a relative base point in the WCS
pycomcad.py:1437
MethodGetEntity
Return a tuple containing the picked object and the coordinate of picked point
pycomcad.py:1469
MethodGetEntityByItem
Refere to entity by its index location
pycomcad.py:660
MethodGetInteger
Gets an integer value from the user.
pycomcad.py:1480
MethodGetKeyword
Before using GetKeyword method,this method has to be used to limit the user-input forms Gets a keyword string from the user
pycomcad.py:1463
MethodGetReal
Gets a real (double) value from the user.
pycomcad.py:1474
MethodGetSelectionSets
setname:string, the name of selection set. There are 2 steps to select entity object: (1) create selection set (2)Add entity into set Also
pycomcad.py:666
MethodGetString
hasSpaces: 0:input string shall not has empty char('') meaning input has been done; 1:input string can have empty char(''), and the 'Entery'
pycomcad.py:1408
MethodGridOn
grid-on
pycomcad.py:411
MethodHandle2Object
handle:entities or its reference objects' handle. return the object of specified handle
pycomcad.py:652
MethodInitializeUserInput
Before using GetKeyword method,this method has to be used to limit the user-input forms , and this method can also used with GetAngle,GetCorner,G
pycomcad.py:1446
MethodInsertBlock
insertPnt:Apoint type,the insert point in the process of block insertion. blockName:string, the inserted block name which has been created
pycomcad.py:920
MethodIsEarlyBind
Test whether it is :return:
pycomcad.py:131
MethodIsSaved
Specifies if the document has any unsaved changes :return:True: The document has no unsaved changes. False: The document has unsaved changes.
pycomcad.py:388
MethodLayerNames
:return a list containing all layer names
pycomcad.py:789
MethodLayerNumbers
return the number of layers in the active document
pycomcad.py:782
MethodLayers
:return layer set object
pycomcad.py:810
MethodLayoutNames
(self)
pycomcad.py:198
MethodLinetypes
return linetype set
pycomcad.py:869
MethodLoadLinetype
typename:string, the name of type needed to be load.such as 'dashed','center' filename:string, the name of the file the linetype is in.'acad.lin'
pycomcad.py:847
MethodOpenFile
open a dwg file in the path
pycomcad.py:237
MethodOpenedFilenames
:return: list,all opened filenames
pycomcad.py:282
MethodOpenedFilenumbers
:return: the number of opened file
pycomcad.py:291
MethodPreferences
return preferences object
pycomcad.py:1509
MethodPurgeAll
Removes unused named references such as unused blocks or layers from the document. This method is the equivalent of entering purge at the Command
pycomcad.py:264
MethodRAppNames
return registerd application names list
pycomcad.py:171
MethodRApps
return registered applications collections, it has `Add(str)` and `Item(int)` method, `Count` property
pycomcad.py:164
MethodRegen
Regenerates the entire drawing and recomputes the screen coordinates and view resolution for all objects. enum: 0:Regenerates only the active
pycomcad.py:272
MethodSaveAsFile
save as file
pycomcad.py:252
MethodSaveFile
save file
pycomcad.py:247
MethodSendCommand
Sends a command string from script for example, to draw a circle whose center is 0,0,0, and radius is 100 >>>acad.SendCommand('circle 0,0,0 100
pycomcad.py:152
MethodSetActiveBigFontFile
This property is similar to the FontFile property, except that it is used to specify an Asian-language Big Font file. The only valid file type i
pycomcad.py:1062
MethodSetActiveFontFile
set the active textstyle's font file by the path of character file, for example, path=self.acad.Path+r'\tssdeng.shx'
pycomcad.py:1056
MethodSetVariable
name:string
pycomcad.py:226
MethodSetXData
set XData for entity xdataPairs:list containing tuple which represent xdataType and xdata. >>>circle=acad.AddCircle(Apoint(0,0),20) >>>acad.S
pycomcad.py:179
MethodShowLineweight
TrueorFalse:Boolean, determining whether the lineweight be shown or not
pycomcad.py:863
next →1–100 of 110, ranked by callers