Contact US

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!

*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

Hysys - Excel link, BackDoorVariable

Hysys - Excel link, BackDoorVariable

Hysys - Excel link, BackDoorVariable

I am trying to access the Initial holdup composition of a separator in a dynamic simulation. Since it seems that it cannot be done with the VBA functions in Excel, I want to do it with the BackDoorVariable function.

The link to the composition is given by:

How can I access the separation stage of the separator? My code is:
Dim hyBD As BackDoor
Dim hyOp As Separator
Dim hyFS As Flowsheet

Set hyFS = Hycase.Flowsheet
Set hyOp = hyFS.Operations.Item("V-100")
Set hyBD = hyOp

Set hyBDvar = hyBD.BackDoorVariable("MoleFraction.101.0").Variable
It returns -32767, which is the empty value…The composition contains values, so it should return the composition value.
I think the error is in the: Set hyOp = hyFS.Operations.Item("V-100") , because it doesn’t have the “SepStage” part…Is there any way to include this?

RE: Hysys - Excel link, BackDoorVariable

How is your hybd variable defined? I would assume that it should be some kind of array (im not sure how the compositions are define - but there must be a list of components and their corresponding values)?

RE: Hysys - Excel link, BackDoorVariable


I can't use this code =/ It seems I have to initialize from products, so just ignore the question.
But thanks for the response, I appreciate it!

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! Already a Member? Login


Close Box

Join Eng-Tips® Today!

Join your peers on the Internet's largest technical engineering professional community.
It's easy to join and it's free.

Here's Why Members Love Eng-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close