×
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

CATBSTR class

CATBSTR class

CATBSTR class

(OP)
hi this i s my coding to create a design table


Sub CATMain()

' declaring parameter

Dim par As Parameters
Set par = CATIA.ActiveDocument.Part.Parameters

' declaring the dimensions

Dim di1, di2, di3 As Dimension
Set di1 = par.CreateDimension("length", "length", 100)
Set di2 = par.CreateDimension("breath", "length", 25)
Set di3 = par.CreateDimension("heigth", "length", 58)

' assign formula

Dim rel As Relations
Set rel = CATIA.ActiveDocument.Part.Relations

' declare variables in relations

Dim ktab As DesignTable
[highlight ] Dim knam, des, path As CATBSTR[/highlight]

Set knam = "flat steel design table"
Set des = "dimensions of company standards"
Set path = "C:\Users\skaliyap\Desktop.txt"

Set ktab = rel.CreateDesignTable(knam, des, False, path)
' link parameters
ktab.AddAssociation di1, "length"
ktab.AddAssociation di2, "breath"
ktab.AddAssociation di3, "heigth"

End Sub


the thing is that im unable to execute because the highlighted line in the coding with CATBSTR shows as compile error
i have also checked all available references but unable to clear my error...

error
compile error
user-defined type not defined

RE: CATBSTR class

And remove Set keyword. Path is not an object variable so you need just:

path = "C:\Users\skaliyap\Desktop.txt"

Tesak
http://scripts4all.eu/txtoncurve/ - Text along a curve for Catia V5

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