1
Automation Interface, Add-Ins and Tools / Re: Creating Part Properties from Python via COM
« on: January 28, 2021, 02:00:03 am »Connect AnySQL MaestroThanks Geert, this works perfectly. With this, I've been able to find one difference between the Python-made part properties and the EA-made part properties.
- Add new connection
- Choose Provider: Microsoft Jet 4.0 OLE db provider
- Select you .eapx file as the database file name (enable All Files (*.*) before you can select the .eapx file)
- That's all
Geert
The difference is located within t_xref. There is a connection between the EA-made part properties and the connector between two blocks I made and connected (which should result in this part property). The Client is the part property, while the supplier is the connection.
See the below for the exact info in the t_xref table:
Code: [Select]
XrefID: {18D07A91-42BB-4bf8-A3F1-210E91796B6B}
Name: CustomProperties
Type: element property
Visibility: Public
Namespace:
Requirement:
Constraint:
Behaviour:
Partition: 0
Description: @PROP=@NAME=_connectorRef@ENDNAME;@TYPE=string@ENDTYPE;@VALU=<SOURCE>@ENDVALU;@PRMT=@ENDPRMT;@ENDPROP;@PROP=@NAME=isReference@ENDNAME;@TYPE=boolean@ENDTYPE;@VALU=0@ENDVALU;@PRMT=@ENDPRMT;@ENDPROP;
Client: {FB323599-99DA-4e41-AFF7-6DB373B9187E}
Supplier: {544A9846-A5B7-46db-99F2-322CC1FB8398}
Link
I was not really sure how to recreate this, since this seems to be CustomProperty, and not a connector. Also because this connection is not visible when you look at the Relationship tab in EA. Since you both have more experience with this than I do, do you know how you can manually create such an entry in the t_xref table? Especially since Geert immediately pointed out that I should have this table, I am curious to know what this means.