I have this basic code in C# but it fails to set the active document and it error out.
it fails on this Line:
document = application.ActiveDocument();
ANy Help on properly getting the active document?
SolidEdgeFramework.Application application = null;
SolidEdgeDocument document = null;
SolidEdgeFramework.Variables variablesTable = null;
// Connect to running Solid Edge Instance
application = (SolidEdgeFramework.Application)
Go to Solution.
document = application.ActiveDocument;
I guess i just solved my own problem, it was only a matter of taking the parentisis out
Parentheses are used with methods while properties do not need them.
VB is more forgiving in such cases. An extra pair of parentheses does no harm for properties.
Also leaving out the parentheses for methods with no arguments too is fine in VB.