I just want to return a measurement in an alternate axis system. All of my code currently goes back to global. I don't seem to be able to specify what axis system to take measures from.
This was a super quick script, scrambled together to unit test a larger bit of functionality.
I think it's pretty straightforward, and there's a relevant comment. So help me understand why this doesn't work. I cast selections to object types all over the place, in all kinds of code. This...
3DX 2017x
I want to create a User Feature that has a drop down box, with pre-populated values. Great for start parts. I was thinking that it would be super simple to use a series of design tables for this. However, I've not come up with a good way to do this. The design table is immediately...
In the following code, I have annotated what works, and what doesn't. The code worked fine, until I put the handling in, to catch the cases where there are no annotations.
Annotations oAnnotations = (Annotations)oAnnotationSet.Annotations;
MessageBox.Show("annotation count =...
3DX 2017x
I'm trying to make a check tool, that will compare the parts in the tree/BOM to the views on the layout, to ensure that our captures/view filters have captured all of the part numbers. I have already got this working on the 3D side, so that the user gets a validation that all parts...
I don't have a problem with creating the 2D Layout views... But is there a way to create the views with locked orthogonal projection, such as when you use the "Principal Views" function in the 2D Layout for 3D Design app?
Also... If that weren't enough... I can't find a method or property to...
So while our technical committee is drafting an internal standard, we need to have a ready made torque spec, available to the world. All of our work is done with metric fasteners. We use everything from black alloy, to blue dyed, with sizes ranging from M12 down to M1. I would need to cover...
I would very much be interested to know if anyone can produce any tangible data, to suggest a correlation between GD&T on a drawing, and an increase in vendor procured parts?
I'm not trying to lead a revolt. Clearly, GD&T is the way to go for a great many parts. But for low cost drivers, I...
Having some trouble understanding what the SelectMultipleElements call is asking me for...
Where xxxxxx is supposed to be Object[] (VBA used to require a CATSafeArrayVariant), according to the signature, and ????? would be the assigned name, and !!!!!! would be the unknown name of the...
I'm just starting into C#, and I'm attempting to write a little code that only works if we have a 3D Shape active.
I'm basically working through the object browser to try to figure this out, so any pro tips on making this struggle a bit easier, would be greatly appreciated.
using System...
I am trying to work backwards from a geometric Feature inside of a part, and obtain its Product Occurrence, in the assembly context. I'm not quite sure how to arrive at this.
I am able to obtain an instance from 'GetPLMOwner', but even this isn't helpful, if we have multiple instances of the...
I'm so frustrated. I've tried 3 times to install VSTA, and while I can get the dialog box in the macros function that allows me to create or import VSTA libraries, I cannot edit. Every time I try, I get a message that says, "the editor has failed to launch. Try to reinstall VSTA 2013 using...
Simply, I need to know how to create a flat pattern view for 3D annotation, but release the part in the bent/folded condition.
Do I need to create the equivalent of a V5 "scene" for this task? Or is it something else?
I have several sets of parameters. Basically, I want to create a reaction that updates an integer, and tells me how many total parameters are in all of the sets of parameters, when/if a new parameter is added to any of the sets.
I just started in 3DX, and this seems way clunkier than I ever remember V5 being.
So what's the deal with 3D view creation in 3D Tolerancing and Annotation App? I set up my default views from an axis, and the displayed views - front, top, right, etc, etc - are all as expected. But when I...
I have several working UDFs that have the UserFeature defined, and then, attached to the UserFeature, is what looks like an attribute. But it's actually an object that represents the output of the UserFeature. In my case, I want to know how I can create this output, so that my automation...
In EKL (V5), whenever I use a function that needs to access the name of a product, I run into a problem if the instance name is the same. It seems that it treats both CATParts and CATProducts as Products.
So the question is, how would I discern between a CATProduct and a CATPart programmatically?
I have a catalog of UDFs. I am using EKL calls to situationally instantiate them. Recently, I had need to update one of the UDF. I made the changes to the UDF, updated it, saved it back to the original directory, and re-pointed the catalog at the UDF feature.
My base code that instantiates the...
I'm trying to use distancedir to measure along a direction. No problem, it works fine. Except what I really want to do, is invert the direction in the next iteration, and get the measure of all of a certain feature in the other direction.
For me, a direction should dictate only positive...
I've found that the Query function is a lot deeper than the help documentation lets on.
There is one particular case that isn't quite working, and I cannot figure out why. I have a joined curve that is comprised of 15 line segments, and 2 circles. I want to query the list for lines, and...