The code I get recording this command gives me manual creation of each point.
Can I loop the creation instead? If so how do I add points to an array in a way that allows me to access them as individual objects?
The code below is a snippet of the recording, each point is created individually on...
Hey Guys!
Just wondering if anyone knows how to access the points and plane command (GSD), thru VBA. Alternatively, does anyone have an effective way of mass point creation on specified curves?
I need to make these points in a macro because further modifications will be made to the points by...
Thank you for your post
I understand the basics of copy from a part. This particular case required you to copy from a instance of a part within an instance of a product. I understand the product structure, but am hung up on selecting a body within two instances. Here is the section of code that...
Hi,
I think i understand what your asking, right click the projection or section find the item that says front view object (or whatever your view is). Then click Isolate.
Peter
Okay this makes more sense.
So within the sub search, activate the specific part before trying to copy from it?
Sub Search(oProduct) 'THIS SUB RETURN EACH PRODUCT
Dim Prod1
For i = 1 To oProduct.Products.Count
Set Prod1 = oProduct.Products.Item(i)
'Rename...
Thanks again fernado,
I don't think my main problem is being communicated correctly. I have working copy and paste code, but what I don't understand is how to copy specific items (I.e SAMPLE Cavity Design 55227 Cavity Design.X) and NOT the document itself. My "Search" subroutine loops through...
Thank you for your replies
I am attaching a sample file of our companies file structure. This document should be used as an example, only to better understand what needs to be accomplished.
The macro should take:
-Cavity Group (Cavity Group.3)
----SAMPLE Cavity Design(55227 Cavity Design.X)...
The changes are not happening in cavity group. I need to copy from cavity group.
In response, this macro is necessary because otherwise I would need to copy and paste manually upwards of 60times (before doing other steps). Please examine this code:
It is working up until the copy paste...
I got this far, How can i access and a partbody from oProd?
Language="VBSCRIPT"
Sub CATMain()
Set productDocument1 = CATIA.ActiveDocument
Set documents1 = CATIA.Documents
Set partDocument1 = documents1.Item("55227 Male Cavity.CATPart")
'---- Begin resolution script for object : 55227...
Just to clarify, I have many instances of a single product. I need to copy a body WITH link to another product where they will be future accessed. There are upwards of 60 children (instances) of the product within the product as a whole.
EX.
552278 Cavity Design(552278 Cavity Design.1)
552278...
Had a similar issue, what edition of office are you using (specifically Outlook)?
Does your macro interface with any office libraries? If so, which?
Peter
Hello,
I need to copy a partbody from an instance of a product to another product. How might I go about this?
Copying:"Removal : male"
to
"55227-8#K813 Male Plate.CATPart"
syntax may not be perfect, looking for code on how to access specific instances. copying from the document as a whole...
Hey,
I am trying to write a macro that will automate the removal of a tool (body) from a plate it sits in(product). It is creating the removal,
This Code is adding the affected component to "Male1", but I need it to go into "Male155227-8#K813 Male Plate"
Set product5 = products1.Item("Male1")...