Skip to main content
15-Moonstone
February 22, 2018
Question

What is easiest way to generate CSYS with the 3 basic directional planes

  • February 22, 2018
  • 2 replies
  • 6979 views

I am finding myself generating skewed geometry by having a starting CSYS and generating Front, Right and Top planes off of the CSYS for making sketches that are robust because of good perpendicular references.

 

To do this takes a good chunk of time.  Is there a quick way of adding a CSYS with it's 3 connecting planes?  (Preferably with just 1 keystroke)

 

I have a feeling that the suggested answer might be in developing a map key.  Before I look at this I am wondering whether there might be perhaps another command that might already do this.

2 replies

StephenW
23-Emerald III
February 22, 2018

I'm assuming you are not talking about the default coord sys and the default planes since you mentioned "skewed".

If you are needing this geometry all the time, I would make a "skewed start part" and create the features as I want and save it so that when I create a new part, I would use the "skewed start part" as the template. You could make a mapkey to do use that start part without having to browse to a folder to find it.

As far as making the "skewed" coord sys and 3 planes associated, there is no single or quick method but a mapkey could be developed pretty quickly seems like.

pimm15-MoonstoneAuthor
15-Moonstone
February 22, 2018

Hi Steven,

 

I'll clarify the application which I would be using this.

 

In the models that I work with there are numerous tilts.  I have to build sketches within the model that don't follow the standard orthographic views.  I have found that with each skewed sketch it is helpful to have it carry a definite inclination of which the CSYS with it's supporting planes provides.

 

I do actually have a start part that allows me to skew the orientation right out of the chute, but I many times need to have numerous CSYS and planes within a model.  Attached with this comes the price of extra time associated with each of these combinations.

 

As you suggest my best bet might be in creating a map key.  Just wanted to see if there was another option.

 

17-Peridot
February 22, 2018

This sounds like a good place for a UDF, User Defined Feature.

Once you get the process down as to how to make this reliably, it can be programmed into a custom UDF.

19-Tanzanite
March 6, 2018

I have made this kind of a mapkey for Creo 2.0 before.

Example "code": 

 

mapkey txy @MAPKEY_NAMEMake XY Plane through the selected CSYS;\
@MAPKEY_LABELMake XY Plane (txy);\
~ Command `ProCmdDatumPlane` ;\
~ FocusIn `Odui_Dlg_00` `t1.constrs_table`;\
~ Select `Odui_Dlg_00` `t1.constrs_table` 2 `0` `column_2`;\
~ Select `Odui_Dlg_00` `constr_type1_OPTMENU1` 1 `Through`;\
~ FocusOut `Odui_Dlg_00` `t1.constrs_table`;\
~ Select `Odui_Dlg_00` `t1.constr_through_csys` 1 `XY`;\
~ Activate `Odui_Dlg_00` `stdbtn_1`;

 

How to "install" it:

(copy and paste above code into your config.pro)

 

How to use it:

1) select CSYS

2) type "txy"

3) voila! - plane through the XY axes is created

 

 

 

pimm15-MoonstoneAuthor
15-Moonstone
May 13, 2021

A long while back I did create a UDF that generates the X, Y and Z planes, but it is a bit cumbersome as it also adds a new csys.

 

In relooking for a better way of doing this I found my old thread.

 

I just tried the suggestion by pausob and it does work well in generating this for the XY plane.

 

By any chance could this be created to generate the 3 planes at once?

 

I can't say that I understand the coding but it does work well for making 1 plane.

Chris3
21-Topaz I
May 13, 2021

Can you elaborate on what is cumbersome about the UDF? The UDF should be just a couple of clicks. Give the attached a try.

 

You could do it with a mapkey too but the problem with the mapkey approach is that when you create the first datum the original CSYS is no longer selected. The mapkey would need to pause so you could reselect the CSYS again. You could pause the mapkey and type in the CSYS name into the find tool and then get all three that way but using the UDF seems like a simpler approach to me.