Welcome to the COE Discussion Forum! 

 

To participate in the discussion forum, you must be logged in to the website.  If you forget your login information, please contact COE Headquarters at coe@coe.org or (800) 263-2255.

If you are new to the COE Discussion Forum and would like to participate, please register.

 

The COE 2008 Fall Industry Workshops

Automotive
Oct. 15-16
Troy, Michigan

 

Aerospace & Defense
Oct. 27-28
Wichita, Kansas

   

Register Today!

COE DISCUSSION FORUM
Subject: Publishing points

You are not authorized to post a reply.   
Author Messages
rajshri

06 Aug 2008 08:24 AM

Hi,

There are some no. of  points. I want to publish each one of them thru Macro. This is a code which i am using. But the problem is that all the points are being published at once i.e one publication contains all the points.(Rather all the points are being highlighted when we select the publication in the publication window). Please let me know where I am going wrong.

  For PointCount = 1 To oPart.Bodies.Item(1).HybridShapes.Count

    Dim RefStrP As String
    RefStrP = oProdDocu.Product.Name + "/" + oProduct.Name + "/!" + oPart.Bodies.Item(1).HybridShapes.Item(PointCount).Name
   
    Dim PointRef As Reference
    Set PointRef = oProdDocu.Product.CreateReferenceFromName(RefStrP)
   
    Dim PubName As String
    PubName = oPart.Bodies.Item(1).HybridShapes.Item(PointCount).Name + CStr(PointCount)
   
    Dim ThePublication  As Publication
    Set ThePublication = oPublications.Add(PubName)
   
    oPublications.SetDirect PubName, PointRef
   
    Dim settingControllers1 As SettingControllers
    Set settingControllers1 = CATIA.SettingControllers

    Dim visualizationSettingAtt1 As VisualizationSettingAtt
    Set visualizationSettingAtt1 = settingControllers1.Item("CATVizVisualizationSettingCtrl"

    visualizationSettingAtt1.SaveRepository

  Next PointCount

You are not authorized to post a reply.
Forums > COE Forums > CATIA V5 Programming > Publishing points



ActiveForums 3.6

    

401 North Michigan Avenue, Chicago, IL 60611-4267 | (312) 321-5153 | (800) COE-CALL (U.S.)