×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Center of Gravity + Equation = positioning of point.

Center of Gravity + Equation = positioning of point.

Center of Gravity + Equation = positioning of point.

(OP)
I have searched google and this forum for a solution but all answers go to the same bad solution of creating a macro that you update.
I DO NOT WANT TO USE A MACRO.
So now the real issue.
In an equation i can set a value to something according to CoG.x, y or z.
I can create a 3D sketch and insert a point. if i add a dimension to this point from Origo and then control the meassurement in a equation all is well until values go negative. is there a way of setting the x y z values of a point in a sketch. I know how to create a new point in a sketch this is not an option since it will not relocate other geometry bound to the old point.

I cant find any named reference to a point to use but in the menu i can hand enter x y z so it should be possible...

RE: Center of Gravity + Equation = positioning of point.

I had an unrelated but similar situation where I needed to control a point in space and going negative was a challenge.  I ended up creating a set of offset planes outside of my range of motion.  I located the point relative to those offest planes.  That way the dimensions are always positive.  I controlled everything with a design table, so my offset plane dimensions could easily be added to the formulas.

-Dustin
Professional Engineer
Pretty good with SolidWorks

RE: Center of Gravity + Equation = positioning of point.

Hi, tummen:

If you don't want to use a macro, maybe you want to use a macro feature.

What are you going to do with your CG? Do you have an example?

Best regards,
 

RE: Center of Gravity + Equation = positioning of point.

(OP)
We constantly make parts where we need to use the CoG as a reference in geometry.
Sometimes we use it to draw a line from the lifting point to CoG to verify that it will hang straight.
But a macro has to be manually triggered, and all macros i have seen nakes a new point every time so it is double bad for me.

RE: Center of Gravity + Equation = positioning of point.

Howdy,
The problem you are having may be related to the fact that SolidWorks Planes don't recognize a positive and negative side (all dimensions are displayed as positive. If you try to cross over the Plane from one side to the other the dimension is still a positive number (you can't control which side of the Plane your on). Positive numbers are usually a good thing (especially for dimensions on drawings). With the help of others I have discovered a way around this using a sketch points Coordinates (x, y, z) and Driven Dimensions, but, so far it only works with SW 2010 x32.

Are you using SolidWorks 2010 x32 in Windows XP?

Tobin Sparks
www.nov.com

RE: Center of Gravity + Equation = positioning of point.

(OP)
No we use SW 2011 SP2 on XP32 + Vista 64 bit + Win 7 64bit systems.
What was your solution?

RE: Center of Gravity + Equation = positioning of point.

Hi, tummen:

Someone named Jim Sculley created a nice macro feature for CoG. This feature is what you need.  This is not a regular macro, but rather it is a macro feature.  The CoG will get updated automaticallly when models (parts or assemblies) change. You can download it from the link below:

https://forum.solidworks.com/servlet/JiveServlet/download/120481-39901/CG.zip

I like it, and I hope you will too.  There is an SPR for this feature (SPR182287, from Solidworks).

Best regards,

RE: Center of Gravity + Equation = positioning of point.

Howdy tummen,
I have just built around Jim Sculley's macro feature method. Automatically adding Driven Dimensions from the Origin/Planes to the CofG point. The point is updated at each rebuild (Ctrl + Q) and is unaffected by which side of the Plane the C of G ends up on. The Driven Dimensions are well just driven along. My macro also adds custom properties to the model that can auto-update a table on the drawing. I have no way of testing to see if it will work an any of your SW 2011 systems. Sometimes its just a matter of copy and paste the code into a macro started in your particular computer environment.

Read the CofG.txt file for important Preconditions.

Enjoy

Tobin Sparks
www.nov.com

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources