Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Paste special in catvbs

Status
Not open for further replies.

appvid

Automotive
Nov 9, 2012
81
US
Hello
Iam trying to copy a feature and paste with out link in the same geoset.

.paste() does work fine but

.Pastespecial.("....withoutlink") does add a feature called 3DDatum(i've never seen this before) in my tree that has nothing in it.

any ideas what it is and what is the solutuion?

regards
var
 
Replies continue below

Recommended for you

Hi Ferdo

please look at this picture.

Like i said earlier paste works well and pastewithoutlink in other scripts works good too. Problem comes only in this script. sorry I was not able to post whole script because of network.


thanks
var
 
 http://files.engineering.com/getfile.aspx?folder=717f7ab7-97e1-4c69-829a-643b6ce9a452&file=issues-.jpg
yes I recorded macro, that works fine.
When I copy into my macro, that is doing as shown in picture (3datum).
my question is ... in my macro, paste is working good why pastespecial is not working.

regards
var
 
If you are pasting as result into the same part do not use "...without link" if you just want a datum feature. Use .PasteSpecial “CATPrtResult”.
 
well, all i want have is an isolated/datum feature of it.

by the way, .PasteSpecial “CATPrtResult” is copy with link. I do not understand why not "...without link" be used in same part.

regads
var
 
Var, you are correct I misspoke. Sorry. BTW what work bench are you in when you do the paste special? You may need to switch to GSD For it to work properly. Also, what is in the join? How do you create the Join?
 
I am wondering if the join is created with a macro and "Check Connexity" and "Manifold Result" are toggled off...or if somehow you were able to put a surface and a curve into the join. I found this description of 3DDatum features on another site:

Manipulating Objects
Using the Paste Special... Command When pasting As Result features with an undetermined dimension i.e. features containing several geometrical domains with a different dimension (such as a point and a line or a line and a plane), the result is a 3DDatum.

If you copy then paste As Result a surface element which is not a point, a line, a surface or curve, a circle or a surface according to the geometrical dimension and the type of the elem If the dimension cannot be determined (this is the case for features containing several geom dimension such as a point and a line or a line and a plane), the result will be a 3DDatum. In the example below, when "Split.1" is copied then pasted As Result onto "Part1", the resu ("Surface.2"):
 
Hello

THis is join us my last step in my macro (say main macro)

You are right, It has multiple dimension elements (curves, points etc). Problem occurs only when I do copy/paste thru script. If I do manually every thing is fine. (datum feature do not show up)
One more thing I just found is that I can delete,paste that feature. But can not assign color properties thru script.

Again Every thing is fine If I do copy/paste (with link, with out link) in a new script file (without merging with my main macro). That means problem not with CATIA or catia versions. Problem is with my main macro.

I though you guys will have some Idea about it.


thanks
var


 
When you say points, are they point features you are creating or BREP vertices that are created when you create a line or curve. If you try to join points manually, it will not work. If you try to join a surface and a line, it will not work. I have seen some crazy thing happen in macros, so if yours is letting you join surfaces, lines and points, I would not join different element types together. Make separate joins of like elements. It is difficult to understand without seeing the code. Are you clearing your selection object before selecting/copy/pasting the join?
 
Hi Fernando,

There is only one file attached and not knowing what file is that.

regards
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Top